From: Jérémy Rosen Date: Wed, 7 Sep 2016 09:08:44 +0000 (+0200) Subject: linux-libc-headers: allow overriding compiler name in KConfig X-Git-Tag: uninative-1.4~152 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4676525795c565855cadd992e4be68eba6bc8b01;p=openembedded-core.git linux-libc-headers: 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/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc index c701b3954b..078d752caa 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc @@ -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 }