]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemtap: split runtime material in its own package
authorYann Dirson <yann@blade-group.com>
Thu, 12 Nov 2020 17:26:16 +0000 (18:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Nov 2020 14:31:56 +0000 (14:31 +0000)
Note the _class-target qualifier, here to prevent a funky dependency of
systemtap-native on systemtap-native-runtime-native.  This possibly hints
to something deeper ?

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/runtime_test.py
meta/recipes-kernel/systemtap/systemtap_git.bb

index 1bb1c4bee40ed67c7340a451c80f78dcf012b026..7189e4e6c53d8004f9e82e9e64aceb9cba817a52 100644 (file)
@@ -384,7 +384,7 @@ KERNEL_EXTRA_FEATURES_append = " features/debug/debug-kernel.scc"
 KERNEL_EXTRA_FEATURES_append = " features/systemtap/systemtap.scc"
 
 # add systemtap run-time into target image if it is not there yet
-IMAGE_INSTALL_append = " systemtap"
+IMAGE_INSTALL_append = " systemtap-runtime"
 """
 
         def test_crosstap_helloworld(self):
index 74bf7cb35c37eeb7d0b59ecb09cbf59ed08237ca..8dad5b15f05e7858066fee2392ab8e46f9a91eff 100644 (file)
@@ -36,6 +36,15 @@ FILES_${PN}-exporter = "${sysconfdir}/stap-exporter/* \
 RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient"
 SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service"
 
+PACKAGES =+ "${PN}-runtime"
+FILES_${PN}-runtime = "\
+ ${bindir}/staprun \
+ ${bindir}/stap-merge \
+ ${bindir}/stapsh \
+ ${libexecdir}/${BPN}/stapio \
+"
+RDEPENDS_${PN}_class-target += "${PN}-runtime"
+
 PACKAGES =+ "${PN}-examples"
 FILES_${PN}-examples = "${datadir}/${BPN}/examples/"
 RDEPENDS_${PN}-examples += "${PN}"