From a8b63f0388f666e71ca296b6a4c42fae055e4de7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Fri, 22 Nov 2013 18:51:07 +0800 Subject: [PATCH] rk: Makefile set default ARCH and CROSS_COMPILE --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 92248d113450..11f0b5836b4a 100644 --- a/Makefile +++ b/Makefile @@ -192,7 +192,11 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ # "make" in the configured kernel build directory always uses that. # Default value for CROSS_COMPILE is not to prefix executables # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile +ARCH ?= arm ARCH ?= $(SUBARCH) +ifneq ($(wildcard ../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6),) +CROSS_COMPILE ?= ../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- +endif CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) # Architecture as present in compile.h -- 2.34.1