diff options
| -rw-r--r-- | meta/files/toolchain-shar-relocate.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh index cee9adbf39..e8ab357717 100644 --- a/meta/files/toolchain-shar-relocate.sh +++ b/meta/files/toolchain-shar-relocate.sh | |||
| @@ -4,8 +4,9 @@ if ! xargs --version > /dev/null 2>&1; then | |||
| 4 | fi | 4 | fi |
| 5 | 5 | ||
| 6 | # fix dynamic loader paths in all ELF SDK binaries | 6 | # fix dynamic loader paths in all ELF SDK binaries |
| 7 | # 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 '"') | 8 | 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*") | 9 | dl_path=$($SUDO_EXEC find $native_sysroot/lib/ -maxdepth 1 -name "ld-linux*") |
| 9 | if [ "$dl_path" = "" ] ; then | 10 | if [ "$dl_path" = "" ] ; then |
| 10 | echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" | 11 | echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" |
| 11 | exit 1 | 12 | exit 1 |
