From 80c19b6825bc3c11c100686c2c84a75f2a09963d Mon Sep 17 00:00:00 2001 From: Francisco Franco Date: Sun, 4 Mar 2018 18:55:03 +0000 Subject: [PATCH] Makefile: unfuck it Signed-off-by: Francisco Franco --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2d22d7b96303..e97ef64938cf 100644 --- a/Makefile +++ b/Makefile @@ -192,8 +192,8 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ # 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 ?= arm -CROSS_COMPILE ?= ../arm-eabi-4.8/bin/arm-eabi- +ARCH ?= $(SUBARCH) +CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) # Architecture as present in compile.h UTS_MACHINE := $(ARCH)