babeltrace: extend to nativesdk
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
Signed-off-by Changqing Li <[email protected]>
--- 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
@@ -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
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
Signed-off-by Changqing Li <[email protected]>
--- 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
@@ -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