diff options
| -rw-r--r-- | meta/files/toolchain-shar-template.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-template.sh b/meta/files/toolchain-shar-template.sh index 2578a34a2d..0d679a66db 100644 --- a/meta/files/toolchain-shar-template.sh +++ b/meta/files/toolchain-shar-template.sh | |||
| @@ -154,7 +154,12 @@ if [ $relocate = 1 ] ; then | |||
| 154 | fi | 154 | fi |
| 155 | 155 | ||
| 156 | # replace @SDKPATH@ with the new prefix in all text files: configs/scripts/etc | 156 | # replace @SDKPATH@ with the new prefix in all text files: configs/scripts/etc |
| 157 | $SUDO_EXEC find $native_sysroot -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\|source\).*text"|awk -F':' '{printf "\"%s\"\n", $1}'|$SUDO_EXEC xargs -n32 sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" | 157 | for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do |
| 158 | $SUDO_EXEC find $replace -type f -exec file '{}' \; | \ | ||
| 159 | grep ":.*\(ASCII\|script\|source\).*text" | \ | ||
| 160 | awk -F':' '{printf "\"%s\"\n", $1}' | \ | ||
| 161 | $SUDO_EXEC xargs -n32 sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" | ||
| 162 | done | ||
| 158 | 163 | ||
| 159 | # change all symlinks pointing to @SDKPATH@ | 164 | # change all symlinks pointing to @SDKPATH@ |
| 160 | for l in $($SUDO_EXEC find $native_sysroot -type l); do | 165 | for l in $($SUDO_EXEC find $native_sysroot -type l); do |
