Skip to contentSkip to conversation

babeltrace: extend to nativesdk

PATCH New [email protected] 1 participant 2 messages Mar 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 babeltrace: extend to nativesdk

From: Changqing Li <[email protected]>

This allows anyone using the SDK to be able to analyze the logs collected on target

---
 meta/recipes-kernel/lttng/babeltrace_1.5.11.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-kernel/lttng/babeltrace_1.5.11.bb +2 -0
index f4d9b5e42a..2585747fb6 100644
@@ -96,3 +96,5 @@ do_install_ptest () {
 	sed -i 's:^BTBIN.*:BTBIN=/usr/bin/babeltrace:' ${f}
     done
 }
+
+BBCLASSEXTEND = "nativesdk"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 babeltrace2: extend to nativesdk

From: Changqing Li <[email protected]>

This allows anyone using the SDK to be able to analyze the logs collected on target

---
 meta/recipes-kernel/lttng/babeltrace2_2.0.6.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
meta/recipes-kernel/lttng/babeltrace2_2.0.6.bb +12 -0
index d6c75d7580..bd6eb9ba1c 100644
@@ -93,3 +93,15 @@ do_install_ptest () {
     # Remove architechture specific testfiles
     rm -rf ${D}${PTEST_PATH}/tests/data/plugins/flt.lttng-utils.debug-info/*
 }
+
+do_install:append:class-nativesdk() {
+    mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
+    cat <<- EOF > ${D}${SDKPATHNATIVE}/environment-setup.d/babeltrace2.sh
+	export BABELTRACE_PLUGIN_PATH="${libdir}/babeltrace2/plugins"
+	export LIBBABELTRACE2_PLUGIN_PROVIDER_DIR="${libdir}/babeltrace2/plugin-providers"
+	EOF
+}
+
+FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/babeltrace2.sh"
+
+BBCLASSEXTEND = "nativesdk"
Signature · 1 line
2.34.1