From: 黄涛 Date: Fri, 22 Nov 2013 10:51:07 +0000 (+0800) Subject: rk: Makefile set default ARCH and CROSS_COMPILE X-Git-Tag: firefly_0821_release~6482 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8b63f0388f666e71ca296b6a4c42fae055e4de7;p=firefly-linux-kernel-4.4.55.git rk: Makefile set default ARCH and CROSS_COMPILE --- 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