diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 11 | ||||
-rw-r--r-- | meta/files/toolchain-shar-relocate.sh | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 8ef2b77557..ef47a6ea0c 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
@@ -171,9 +171,20 @@ echo "done" | |||
171 | 171 | ||
172 | printf "Setting it up..." | 172 | printf "Setting it up..." |
173 | # fix environment paths | 173 | # fix environment paths |
174 | real_env_setup_script="" | ||
174 | for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do | 175 | for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do |
176 | if grep -q 'OECORE_NATIVE_SYSROOT=' $env_setup_script; then | ||
177 | # Handle custom env setup scripts that are only named | ||
178 | # environment-setup-* so that they have relocation | ||
179 | # applied - what we want beyond here is the main one | ||
180 | # rather than the one that simply sorts last | ||
181 | real_env_setup_script="$env_setup_script" | ||
182 | fi | ||
175 | $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $env_setup_script | 183 | $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $env_setup_script |
176 | done | 184 | done |
185 | if [ -n "$real_env_setup_script" ] ; then | ||
186 | env_setup_script="$real_env_setup_script" | ||
187 | fi | ||
177 | 188 | ||
178 | @SDK_POST_INSTALL_COMMAND@ | 189 | @SDK_POST_INSTALL_COMMAND@ |
179 | 190 | ||
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh index d58e4ed152..4ef2927171 100644 --- a/meta/files/toolchain-shar-relocate.sh +++ b/meta/files/toolchain-shar-relocate.sh | |||
@@ -1,5 +1,3 @@ | |||
1 | #reset the env_setup_script value to the proper value | ||
2 | env_setup_script=$target_sdk_dir/environment-setup-@REAL_MULTIMACH_TARGET_SYS@ | ||
3 | # fix dynamic loader paths in all ELF SDK binaries | 1 | # fix dynamic loader paths in all ELF SDK binaries |
4 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') | 2 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') |
5 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") | 3 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") |