path: root/meta/files
diff options
authorZawadzki, Krzysztof (Nokia - PL/Wroclaw) <>2016-03-08 19:53:28 +0000
committerRichard Purdie <>2016-03-11 16:50:28 +0000
commit723434fb3bb78f18fdf281d31efa5b59138ca8a6 (patch)
tree6fdc3d41b0f79fe38c43ab7c76c47ffaf3ac5b8d /meta/files
parent7d2476ca6d72be518189ff1441a090a896749f6a (diff)
meta: 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 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 Signed-off-by: Krzysztof Zawadzki <> Signed-off-by: Ross Burton <>
Diffstat (limited to 'meta/files')
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/files/ b/meta/files/
index 4f34fb4bfb..d4bcf0e55d 100644
--- a/meta/files/
+++ b/meta/files/
@@ -47,7 +47,7 @@ for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do
$SUDO_EXEC find $replace -type f
done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \
awk -F':' '{printf "\"%s\"\n", $1}' | \
- grep -v "$target_sdk_dir/environment-setup-*" | \
+ grep -Ev "$target_sdk_dir/(environment-setup-*|relocate_sdk*|${0##*/})" | \
xargs -n100 $SUDO_EXEC sed -i \
-e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" \
-e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" \