[oe-commits] [openembedded-core] 05/40: linux-yocto: allow overriding compiler name in KConfig

git at git.openembedded.org git at git.openembedded.org
Tue Sep 13 14:19:56 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit c710401a2af6488b38565e8ef32b48ed1cd0aa69
Author: Jérémy Rosen <jeremy.rosen at smile.fr>
AuthorDate: Wed Sep 7 11:08:43 2016 +0200

    linux-yocto: 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 at intel.com>
---
 meta/classes/kernel.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index d6a0ca8..e4e8ee4 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -156,6 +156,7 @@ UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}"
 # Some Linux kernel configurations need additional parameters on the command line
 KERNEL_EXTRA_ARGS ?= ""
 
+EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}""
 KERNEL_ALT_IMAGETYPE ??= ""
 
 copy_initramfs() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list