One xsct-native is run (manually or through a dependency) an external script
may need to access the xsct-trim components.  Ensure that the path to the
components directory is defined by default.  However, when we are in a
recipe context, we should not be calling it from the components directory,
but instead from the recipe's recipe-sysroots-native directory.

Signed-off-by: Mark Hatle <[email protected]>
---
 conf/xsct-tarball.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/conf/xsct-tarball.inc b/conf/xsct-tarball.inc
index b983e54..8a0886e 100644
--- a/conf/xsct-tarball.inc
+++ b/conf/xsct-tarball.inc
@@ -7,7 +7,8 @@
 TOOL_VER_MAIN ?= "${XILINX_XSCT_VERSION}"
 TOOL_VER_MAIN[doc] = "XSCT version, usually the same as XILINX_XSCT_VERSION"
 
-XILINX_SDK_TOOLCHAIN ??= "${RECIPE_SYSROOT_NATIVE}/Vitis/${TOOL_VER_MAIN}"
+XILINX_SDK_TOOLCHAIN_BASE = "${@'${COMPONENTS_DIR}/${BUILD_ARCH}/xsct-native' 
if d.getVar('PN') == 'defaultpkgname' else '${RECIPE_SYSROOT_NATIVE}'}"
+XILINX_SDK_TOOLCHAIN ??= "${XILINX_SDK_TOOLCHAIN_BASE}/Vitis/${TOOL_VER_MAIN}"
 
 ESDK_LOCALCONF_ALLOW:append = " XILINX_SDK_TOOLCHAIN"
 
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5413): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5413
Mute This Topic: https://lists.yoctoproject.org/mt/106610004/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to