aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-libc-headers
diff options
context:
space:
mode:
authorJérémy Rosen <jeremy.rosen@smile.fr>2016-09-07 11:08:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-14 22:22:07 +0100
commit3e6f3e09a35313ea25bceb108c7c19dcac61a1d9 (patch)
tree87fe4f38653042a6763f782936fbf5b8b4fa2d87 /meta/recipes-kernel/linux-libc-headers
parent270f4232acafccc07874dbc967cfd4dde4460721 (diff)
downloadopenembedded-core-contrib-3e6f3e09a35313ea25bceb108c7c19dcac61a1d9.tar.gz
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 (From OE-Core rev: 4676525795c565855cadd992e4be68eba6bc8b01) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers')
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc2
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
}