diff mbox

[1/1] kbuild: fix CONFIG_CROSS_COMPILE issue in .config

Message ID 201007202223.o6KMNRpV021360@imap1.linux-foundation.org (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Morton July 20, 2010, 10:23 p.m. UTC
None
diff mbox

Patch

diff -puN Makefile~kbuild-fix-config_cross_compile-issue-in-config Makefile
--- a/Makefile~kbuild-fix-config_cross_compile-issue-in-config
+++ a/Makefile
@@ -190,7 +190,7 @@  SUBARCH := $(shell uname -m | sed -e s/i
 export KBUILD_BUILDHOST := $(SUBARCH)
 ARCH		?= $(SUBARCH)
 CROSS_COMPILE	?=
-CROSS_COMPILE	?= $(CONFIG_CROSS_COMPILE:"%"=%)
+CROSS_COMPILE	:= $(shell grep CONFIG_CROSS_COMPILE .config | cut -d'"' -f2)
 
 # Architecture as present in compile.h
 UTS_MACHINE 	:= $(ARCH)