summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorWenlin Kang <wenlin.kang@windriver.com>2016-03-23 16:35:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-28 15:55:50 +0100
commitdd61341ff15b96dd7471fe8b0dc9575cb62d5f30 (patch)
treee249f7fa320ab0e8f8c39222b9b32d2e33d3d869 /meta
parentc3c793b4286367b7050c8ec92fb90a1a9f85a89a (diff)
downloadpoky-dd61341ff15b96dd7471fe8b0dc9575cb62d5f30.tar.gz
toolchain-shar-extract.sh: check the length for target_sdk_dir
Check the length for target_sdk_dir to ensure the relocation behaviour in relocate_sdk.py is correct. (From OE-Core rev: 2145bd0d188158c2db85b583b4d7f3ad4612593b) Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/files/toolchain-shar-extract.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 12d39c3893..0295bded6e 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -110,6 +110,12 @@ else
110 target_sdk_dir=$(readlink -m "$target_sdk_dir") 110 target_sdk_dir=$(readlink -m "$target_sdk_dir")
111fi 111fi
112 112
113# limit the length for target_sdk_dir, ensure the relocation behaviour in relocate_sdk.py has right result.
114if [ ${#target_sdk_dir} -gt 2048 ]; then
115 echo "Error: The target directory path is too long!!!"
116 exit 1
117fi
118
113if [ "$SDK_EXTENSIBLE" = "1" ]; then 119if [ "$SDK_EXTENSIBLE" = "1" ]; then
114 # We're going to be running the build system, additional restrictions apply 120 # We're going to be running the build system, additional restrictions apply
115 if echo "$target_sdk_dir" | grep -q '[+\ @$]'; then 121 if echo "$target_sdk_dir" | grep -q '[+\ @$]'; then