]> code.ossystems Code Review - openembedded-core.git/commitdiff
linux-libc-headers: allow overriding compiler name in KConfig
authorJérémy Rosen <jeremy.rosen@smile.fr>
Wed, 7 Sep 2016 09:08:44 +0000 (11:08 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Sep 2016 14:17:35 +0000 (15:17 +0100)
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>
meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc

index c701b3954b9e075de639bff20457ab11ecae5ac0..078d752caa6ce5be70bbdaac7d9d0605fe8dedc5 100644 (file)
@@ -50,6 +50,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar
 
 S = "${WORKDIR}/linux-${PV}"
 
+EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}""
+
 do_configure() {
        oe_runmake allnoconfig
 }