summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2017-02-19 21:40:43 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-23 12:29:11 -0800
commit7f6b4359e1f2d9d748d23305a2af73c0efba5928 (patch)
treeec3b31e9ccc3eeb7c20a76f804610de431867945
parent96b7eceefb3e99848d1c16d7c5da123056dcdc24 (diff)
downloadopenembedded-core-7f6b4359e1f2d9d748d23305a2af73c0efba5928.tar.gz
openembedded-core-7f6b4359e1f2d9d748d23305a2af73c0efba5928.tar.bz2
openembedded-core-7f6b4359e1f2d9d748d23305a2af73c0efba5928.zip
native.bbclass: populate native recipe with it's files
This allows a native package's recipe-sysroot-native to be populated with that packages native image files. This in turns allows it to be used by scripts or other tools without creating un-necessary DEPENDS. An example of this is systemtap-native and the crosstap script. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/classes/native.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index ec91fc3c80..6becf8233f 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -174,6 +174,11 @@ python native_virtclass_handler () {
addhandler native_virtclass_handler
native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
+python do_addto_recipe_sysroot () {
+ bb.build.exec_func("extend_recipe_sysroot", d)
+}
+addtask addto_recipe_sysroot after do_populate_sysroot
+
inherit nopackages
do_packagedata[stamp-extra-info] = ""