lttng: Extend recipe for nativesdk variant
cover lttng: Extend recipe for nativesdk variant
Same changes will cherry-pick to all applicable branches
Jaipaul Cheernam (3):
lttng-tools: Extend recipe for nativesdk variant
lttng-ust: Extend recipe for nativesdk variant
liburcu: Extend recipe for nativesdk variant
meta/recipes-kernel/lttng/lttng-tools_2.16.0.bb | 2 ++ meta/recipes-kernel/lttng/lttng-ust_2.16.0.bb | 2 ++ meta/recipes-support/liburcu/liburcu_0.15.7.bb | 2 ++ 3 files changed, 6 insertions(+)
PATCH 1/3 lttng-tools: Extend recipe for nativesdk variant
Extend the lttng-tools recipe with nativesdk support so that LTTng tools can be built and included in the SDK.
--- meta/recipes-kernel/lttng/lttng-tools_2.16.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-kernel/lttng/lttng-tools_2.16.0.bb +2 -0
@@ -103,6 +103,8 @@ INSANE_SKIP:${PN}-dbg = "libexec" PRIVATE_LIBS:${PN}-ptest = "libfoo.so" +BBCLASSEXTEND = "nativesdk" + do_install:append () { # install systemd unit file install -d ${D}${systemd_system_unitdir}
Re: [OE-core] [PATCH 1/3] lttng-tools: Extend recipe for nativesdk variant
Quoted 3 lines · Jaipaul Cheernam via openembedded-core
Extend the lttng-tools recipe with nativesdk support so that LTTng tools can be built and included in the SDK.
You need to explain the actual use case. How are they going to be used when in the SDK?
Alex
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [OE-core] [PATCH 1/3] lttng-tools: Extend recipe for nativesdk variant
Quoted 4 lines · Jaipaul Cheernam
Some of our product modules link directly against liblttng-ctl, so we need nativesdk-lttng-tools for the headers, libraries and .pc files in the SDK sysroot.
Quoted 9 lines
We also use the LTTng host tools for development and testing against target hardware — configuring sessions with lttng, receiving live traces through lttng-relayd, and inspecting them with Babeltrace. Keeping these tools in the SDK also ensures the host tooling matches the LTTng version on the target and avoids version issues.
So the goal is to support cross-linking and the complete host-side tracing workflow, rather than adding lttng-tools to the target image.
The problem is that this variant isn't going to be tested in oe-core. So someone might run 'bitbake nativesdk-lttng-tools' on master and it will fail to build because the yocto autobuilder hasn't tested it. Or it will build, but won't actually work when placed into a SDK.
There's also a broader problem is that it isn't going to be used in oe-core for anything, and is there simply because one project user needs it for their own proprietary work. If we start accepting such extensions, then we might as well have every recipe extended to nativesdk and native variants.
I think you should keep this in .bbappends.
Alex
PATCH 2/3 lttng-ust: Extend recipe for nativesdk variant
In reply to Jaipaul CheernamExtend the lttng-ust recipe with nativesdk support so that LTTng ust can be built and included in the SDK.
--- meta/recipes-kernel/lttng/lttng-ust_2.16.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-kernel/lttng/lttng-ust_2.16.0.bb +2 -0
@@ -43,6 +43,8 @@ PACKAGECONFIG[examples] = "--enable-examples, --disable-examples," PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native" PACKAGECONFIG[python3-agent] = "--enable-python-agent ${PYTHON_OPTION}, --disable-python-agent, python3, python3" +BBCLASSEXTEND = "nativesdk" + FILES:${PN} += " ${PYTHON_SITEPACKAGES_DIR}/*" FILES:${PN}-staticdev += " ${PYTHON_SITEPACKAGES_DIR}/*.a" FILES:${PN}-dev += " ${PYTHON_SITEPACKAGES_DIR}/*.la"
PATCH 3/3 liburcu: Extend recipe for nativesdk variant
In reply to Jaipaul CheernamExtend the liburcu recipe with nativesdk support so that liburcu can be built and included in the SDK.
--- meta/recipes-support/liburcu/liburcu_0.15.7.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-support/liburcu/liburcu_0.15.7.bb +2 -0
@@ -22,6 +22,8 @@ inherit autotools multilib_header ptest CPPFLAGS:append:riscv64 = " -pthread -D_REENTRANT" +BBCLASSEXTEND = "nativesdk" + RDEPENDS:${PN}-ptest += "bash" do_install:append() {