diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-07-16 08:48:06 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-07-17 10:50:39 -0500 |
commit | c8999e8cc07641e2e0e1fff0e55c89b19b22bcb4 (patch) | |
tree | 4b617b1572a7a2a3c352fc451cf9780c89ca0927 /meta-vitis-tc | |
parent | d7ef33e13555cca4c388cd3eea656f11190ebdb8 (diff) | |
download | meta-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.sh | 13 |
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 @@ | |||
1 | if ! xargs --version > /dev/null 2>&1; then | 1 | for 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!" |
4 | fi | 4 | exit 1 |
5 | fi | ||
6 | done | ||
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 | ||
7 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') | 10 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') |
8 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -maxdepth 1 -name "ld-linux*") | 11 | dl_path=$($SUDO_EXEC find $native_sysroot/lib/ -maxdepth 1 -name "ld-linux*") |
9 | if [ "$dl_path" = "" ] ; then | 12 | if [ "$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 |