diff options
author | Jérémy Rosen <jeremy.rosen@smile.fr> | 2016-09-07 11:08:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-13 15:17:35 +0100 |
commit | 4676525795c565855cadd992e4be68eba6bc8b01 (patch) | |
tree | 742892a226da7dd1071e5caeb793ef2d8e064dda /meta/recipes-kernel/linux-libc-headers | |
parent | c710401a2af6488b38565e8ef32b48ed1cd0aa69 (diff) | |
download | openembedded-core-4676525795c565855cadd992e4be68eba6bc8b01.tar.gz openembedded-core-4676525795c565855cadd992e4be68eba6bc8b01.tar.bz2 openembedded-core-4676525795c565855cadd992e4be68eba6bc8b01.zip |
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 <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers')
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |