diff options
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 6 |
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") |
111 | fi | 111 | fi |
112 | 112 | ||
113 | # limit the length for target_sdk_dir, ensure the relocation behaviour in relocate_sdk.py has right result. | ||
114 | if [ ${#target_sdk_dir} -gt 2048 ]; then | ||
115 | echo "Error: The target directory path is too long!!!" | ||
116 | exit 1 | ||
117 | fi | ||
118 | |||
113 | if [ "$SDK_EXTENSIBLE" = "1" ]; then | 119 | if [ "$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 |