summaryrefslogtreecommitdiffstats
path: root/meta/files/toolchain-shar-relocate.sh
diff options
context:
space:
mode:
authorZawadzki, Krzysztof (Nokia - PL/Wroclaw) <krzysztof.zawadzki@nokia.com>2016-03-08 19:53:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-11 16:50:46 +0000
commit9d76cfee1f8880d6647ac99faad0e688dfa1694f (patch)
tree27811dfb4de40cd7c7bcc9740c34c06c86f3b528 /meta/files/toolchain-shar-relocate.sh
parent054abad0aa55ebaa59e7243ad750b29c60769a94 (diff)
downloadpoky-9d76cfee1f8880d6647ac99faad0e688dfa1694f.tar.gz
meta: toolchain-shar-relocate.sh: Fix for extracting SDK in the same directory as SDK script.
If SDK will be extracted in the same folder as sdk shar script. The shar_relocate will substitute SDK.sh script SDKPATH with extract destination path. After that operation no one will be able use this sdk script as paths in it will be different. To fix this we need to filter out sdk script and relocate_sdk scripts from SDKPATH substitution (From OE-Core rev: 723434fb3bb78f18fdf281d31efa5b59138ca8a6) Signed-off-by: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files/toolchain-shar-relocate.sh')
-rw-r--r--meta/files/toolchain-shar-relocate.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
index 4f34fb4bfb..d4bcf0e55d 100644
--- a/meta/files/toolchain-shar-relocate.sh
+++ b/meta/files/toolchain-shar-relocate.sh
@@ -47,7 +47,7 @@ for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do
47 $SUDO_EXEC find $replace -type f 47 $SUDO_EXEC find $replace -type f
48done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \ 48done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \
49 awk -F':' '{printf "\"%s\"\n", $1}' | \ 49 awk -F':' '{printf "\"%s\"\n", $1}' | \
50 grep -v "$target_sdk_dir/environment-setup-*" | \ 50 grep -Ev "$target_sdk_dir/(environment-setup-*|relocate_sdk*|${0##*/})" | \
51 xargs -n100 $SUDO_EXEC sed -i \ 51 xargs -n100 $SUDO_EXEC sed -i \
52 -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" \ 52 -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" \
53 -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" \ 53 -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" \