diff options
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 02ade52d1c..f20d439036 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -218,6 +218,10 @@ done | |||
218 | # fix dynamic loader paths in all ELF SDK binaries | 218 | # fix dynamic loader paths in all ELF SDK binaries |
219 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep OECORE_NATIVE_SYSROOT|cut -d'=' -f2|tr -d '"') | 219 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep OECORE_NATIVE_SYSROOT|cut -d'=' -f2|tr -d '"') |
220 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") | 220 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") |
221 | if [ "$dl_path" = "" ] ; then | ||
222 | echo "SDK could not be set up. Relocate script to find ld-linux.so. Abort!" | ||
223 | exit 1 | ||
224 | fi | ||
221 | executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm +111) | 225 | executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm +111) |
222 | $SUDO_EXEC ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir $dl_path $executable_files | 226 | $SUDO_EXEC ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir $dl_path $executable_files |
223 | if [ $? -ne 0 ]; then | 227 | if [ $? -ne 0 ]; then |