Skip to contentSkip to conversation

native.bbclass: populate native recipe with it's files

PATCH In review Saul Wold 2 participants 2 messages Mar 2, 2017

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/1 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.

---
v2: removed the "before do_build"

 meta/classes/native.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
meta/classes/native.bbclass +5 -0
index ec91fc3..6becf82 100644
@@ -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] = ""
Signature · 1 line
2.7.4
#1 lore raw

Drop this, apparently Richard already applied this and I was looking at an older master branch when I sent this.

Sau!

Quoted 34 lines · Saul Wold

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.

---
v2: removed the "before do_build"
 meta/classes/native.bbclass | 5 +++++

 1 file changed, 5 insertions(+)
meta/classes/native.bbclass +0 -0
index ec91fc3..6becf82 100644
@@ -174,6 +174,11 @@ python native_virtclass_handler () {

 addhandler native_virtclass_handler native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"

meta/classes/native.bbclass +5 -0
+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] = ""
--
2.7.4