From: Changqing Li Date: Thu, 6 Mar 2025 07:36:08 +0000 (+0800) Subject: babeltrace2: extend to nativesdk X-Git-Tag: yocto-5.2~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=760e6d7467a55aa98316310c68a95b94ccd0bf20;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git babeltrace2: extend to nativesdk This allows anyone using the SDK to be able to analyze the logs collected on target Signed-off-by: Changqing Li Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/lttng/babeltrace2_2.0.6.bb b/meta/recipes-kernel/lttng/babeltrace2_2.0.6.bb index a50ba8fcdf1..6a0052f779d 100644 --- a/meta/recipes-kernel/lttng/babeltrace2_2.0.6.bb +++ b/meta/recipes-kernel/lttng/babeltrace2_2.0.6.bb @@ -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"