]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass: populate native recipe with it's files
authorSaul Wold <sgw@linux.intel.com>
Mon, 20 Feb 2017 05:40:43 +0000 (21:40 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2017 20:29:11 +0000 (12:29 -0800)
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>
meta/classes/native.bbclass

index ec91fc3c80294e222753b4ecb7bd280f334f4097..6becf8233fead154fe689b2116aa72a498ef1bba 100644 (file)
@@ -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] = ""