From 4676525795c565855cadd992e4be68eba6bc8b01 Mon Sep 17 00:00:00 2001 From: Jérémy Rosen Date: Wed, 7 Sep 2016 11:08:44 +0200 Subject: 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 --- meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-kernel') 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 } -- cgit 1.2.3-korg