summaryrefslogtreecommitdiffstats
path: root/meta-vitis-tc
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-07-16 08:48:06 -0600
committerMark Hatle <mark.hatle@amd.com>2024-07-17 10:50:39 -0500
commitc8999e8cc07641e2e0e1fff0e55c89b19b22bcb4 (patch)
tree4b617b1572a7a2a3c352fc451cf9780c89ca0927 /meta-vitis-tc
parentd7ef33e13555cca4c388cd3eea656f11190ebdb8 (diff)
downloadmeta-xilinx-c8999e8cc07641e2e0e1fff0e55c89b19b22bcb4.tar.gz
meta-vitis-tc: Update files/toolchain-share* to latest master versions
Minor updates to sync to the latest upstream YP changes. Signed-off-by: Mark Hatle <mark.hatle@amd.com> (cherry picked from commit 550e2bc3255a70364ee0fbc4515a1a20f1feb775) Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-vitis-tc')
-rw-r--r--meta-vitis-tc/files/toolchain-shar-relocate.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta-vitis-tc/files/toolchain-shar-relocate.sh b/meta-vitis-tc/files/toolchain-shar-relocate.sh
index 0c396e6d..b7faf090 100644
--- a/meta-vitis-tc/files/toolchain-shar-relocate.sh
+++ b/meta-vitis-tc/files/toolchain-shar-relocate.sh
@@ -1,11 +1,14 @@
1if ! xargs --version > /dev/null 2>&1; then 1for cmd in xargs file; do
2 echo "xargs is required by the relocation script, please install it first. Abort!" 2 if ! command -v $cmd > /dev/null 2>&1; then
3 exit 1 3 echo "The command '$cmd' is required by the relocation script, please install it first. Abort!"
4fi 4 exit 1
5 fi
6done
5 7
6# fix dynamic loader paths in all ELF SDK binaries 8# fix dynamic loader paths in all ELF SDK binaries
9# allow symlinks to be accessed via the find command too
7native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') 10native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"')
8dl_path=$($SUDO_EXEC find $native_sysroot/lib -maxdepth 1 -name "ld-linux*") 11dl_path=$($SUDO_EXEC find $native_sysroot/lib/ -maxdepth 1 -name "ld-linux*")
9if [ "$dl_path" = "" ] ; then 12if [ "$dl_path" = "" ] ; then
10 echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" 13 echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
11 exit 1 14 exit 1