Message ID | 201007202223.o6KMNRpV021360@imap1.linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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)