Skip to contentSkip to conversation

systemtap: ensure systemtap-native is available

PATCH New Saul Wold 1 participant 1 message Jul 25, 2017

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 systemtap: ensure systemtap-native is available

Since we are adding the addto_sysroot that that is specific to the native recipe, we must split this into a seperate -native .bb recipe.

When systemtap-native is built, the intention is that it's usable from the native sysroot when done, ensure it's there with a forced addto_recipe_sysroot task, we also don't want to clean the sysroot when RM_WORK is enabled otherwise we loose the binaries.

[YOCTO #11403]

(cherry picked from commit 2fdb59741b4fdeaa4aee10812c4a409cdc11a02d)
---
 meta/recipes-kernel/systemtap/systemtap-native_git.bb | 7 +++++++
 meta/recipes-kernel/systemtap/systemtap_git.bb        | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-kernel/systemtap/systemtap-native_git.bb
meta/recipes-kernel/systemtap/systemtap-native_git.bb new file +7 -0
new file mode 100644
index 0000000000..c3da77c831
@@ -0,0 +1,7 @@
+
+require systemtap_git.bb
+
+inherit native
+
+RM_WORK_EXCLUDE_ITEMS += "recipe-sysroot-native"
+addtask addto_recipe_sysroot after do_populate_sysroot before do_build
meta/recipes-kernel/systemtap/systemtap_git.bb +1 -1
index fed368a38b..b3fd9730da 100644
@@ -25,4 +25,4 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,
 
 inherit autotools gettext pkgconfig distutils3-base
 
-BBCLASSEXTEND = "native nativesdk"
+BBCLASSEXTEND = "nativesdk"
Signature · 1 line
2.11.0