From c936d65658de6d87ed11b9d23ee45777c0d1bb21 Mon Sep 17 00:00:00 2001 From: Lunarixus Date: Tue, 31 Dec 2019 16:03:51 +0000 Subject: [PATCH] makefile: Grab CROSS_COMPILE from env Signed-off-by: Lunarixus --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ba46f6b8a01..4b336804b4d 100644 --- a/Makefile +++ b/Makefile @@ -192,9 +192,8 @@ 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 -export KBUILD_BUILDHOST := $(SUBARCH) -ARCH ?=arm64 -CROSS_COMPILE ?=../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- +ARCH ?= arm64 +CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) # Architecture as present in compile.h UTS_MACHINE := $(ARCH)