]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: build host programs with native sysroots
authorWenzong Fan <wenzong.fan@windriver.com>
Wed, 20 Sep 2017 08:17:05 +0000 (01:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Sep 2017 08:24:01 +0000 (09:24 +0100)
commit37f20f2f7bdc8b964736c09371cd8f2342e4d5cb
treefea19c12ce176b681628f395553917d9c98af318
parent271f1a5f65b8685a1e3645026876251122ef3974
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@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass