summaryrefslogtreecommitdiff
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorJérémy Rosen <jeremy.rosen@smile.fr>2016-09-07 11:08:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-13 15:17:34 +0100
commitc710401a2af6488b38565e8ef32b48ed1cd0aa69 (patch)
treeca9c0b22e4e23218d8eb6246d9aa24aa6bb96af7 /meta/classes/kernel.bbclass
parent110cc22614f92e848bbba9ecaa5e6f089f9a2749 (diff)
downloadopenembedded-core-c710401a2af6488b38565e8ef32b48ed1cd0aa69.tar.gz
openembedded-core-c710401a2af6488b38565e8ef32b48ed1cd0aa69.tar.bz2
openembedded-core-c710401a2af6488b38565e8ef32b48ed1cd0aa69.zip
linux-yocto: allow overriding compiler name in KConfig
The KConfig infrastructure needs to build HOST binaries in order to provide its infratstructure. Yocto needs to force the HOSTCC and HOSTCPP variables to BUILD_CC and BUILD_CPP to make sure that the proper compiler is used when compiling host binaries Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index d6a0ca8504..e4e8ee43ea 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -156,6 +156,7 @@ UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}"
# Some Linux kernel configurations need additional parameters on the command line
KERNEL_EXTRA_ARGS ?= ""
+EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}""
KERNEL_ALT_IMAGETYPE ??= ""
copy_initramfs() {