[OE-core] [PATCH v2 3/8] linux-libc-headers: allow overriding compiler name in KConfig
Jérémy Rosen
jeremy.rosen at smile.fr
Wed Sep 7 09:08:44 UTC 2016
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
---
meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 2 ++
1 file 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 c701b39..078d752 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
}
--
git-series 0.8.9
More information about the Openembedded-core
mailing list