From: Jérémy Rosen Date: Wed, 7 Sep 2016 09:08:43 +0000 (+0200) Subject: linux-yocto: allow overriding compiler name in KConfig X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c710401a2af6488b38565e8ef32b48ed1cd0aa69;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index d6a0ca85048..e4e8ee43ea7 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() {