[oe-commits] [openembedded-core] 19/20: kernel.bbclass: build host programs with native sysroots

git at git.openembedded.org git at git.openembedded.org
Thu Sep 21 08:25:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

commit 37f20f2f7bdc8b964736c09371cd8f2342e4d5cb
Author: Wenzong Fan <wenzong.fan at windriver.com>
AuthorDate: Wed Sep 20 01:17:05 2017 -0700

    kernel.bbclass: build host programs with native sysroots
    
    Allow to search header files and libs from native sysroots.
    
    For example, an expanded BUILD_CFLAGS includes:
      '-isystem/builddir/to/linux-yocto/recipe-sysroot-native/usr/include'
    
    And an expanded BUILD_LDFLAGS includes:
      '-L/builddir/to/linux-yocto/recipe-sysroot-native/usr/lib
       -Wl,-rpath-link,/builddir/to/linux-yocto/recipe-sysroot-native/usr/lib
       -Wl,-rpath,/builddir/to/linux-yocto/recipe-sysroot-native/usr/lib'
    
    Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 0ad522d..756707a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -155,7 +155,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}""
+EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" 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