diff options
Diffstat (limited to 'meta/files')
| -rw-r--r-- | meta/files/toolchain-shar-extract.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 91804ec281..f7ab43066f 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
| @@ -259,6 +259,14 @@ if [ $savescripts = 0 ] ; then | |||
| 259 | $SUDO_EXEC rm -f ${env_setup_script%/*}/relocate_sdk.py ${env_setup_script%/*}/relocate_sdk.sh | 259 | $SUDO_EXEC rm -f ${env_setup_script%/*}/relocate_sdk.py ${env_setup_script%/*}/relocate_sdk.sh |
| 260 | fi | 260 | fi |
| 261 | 261 | ||
| 262 | # Execute post-relocation script | ||
| 263 | post_relocate="$target_sdk_dir/post-relocate-setup.sh" | ||
| 264 | if [ -e "$post_relocate" ]; then | ||
| 265 | $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate | ||
| 266 | $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@" | ||
| 267 | $SUDO_EXEC rm -f $post_relocate | ||
| 268 | fi | ||
| 269 | |||
| 262 | echo "SDK has been successfully set up and is ready to be used." | 270 | echo "SDK has been successfully set up and is ready to be used." |
| 263 | echo "Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g." | 271 | echo "Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g." |
| 264 | for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do | 272 | for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do |
