diff options
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 3a50991031..85719fa4ab 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
@@ -85,9 +85,18 @@ else | |||
85 | target_sdk_dir=$(readlink -m "$target_sdk_dir") | 85 | target_sdk_dir=$(readlink -m "$target_sdk_dir") |
86 | fi | 86 | fi |
87 | 87 | ||
88 | if [ -n "$(echo $target_sdk_dir|grep ' ')" ]; then | 88 | if [ "$SDK_EXTENSIBLE" = "1" ]; then |
89 | echo "The target directory path ($target_sdk_dir) contains spaces. Abort!" | 89 | # We're going to be running the build system, additional restrictions apply |
90 | exit 1 | 90 | if echo "$target_sdk_dir" | grep -q '[+\ @]'; then |
91 | echo "The target directory path ($target_sdk_dir) contains illegal" \ | ||
92 | "characters such as spaces, @ or +. Abort!" | ||
93 | exit 1 | ||
94 | fi | ||
95 | else | ||
96 | if [ -n "$(echo $target_sdk_dir|grep ' ')" ]; then | ||
97 | echo "The target directory path ($target_sdk_dir) contains spaces. Abort!" | ||
98 | exit 1 | ||
99 | fi | ||
91 | fi | 100 | fi |
92 | 101 | ||
93 | if [ -e "$target_sdk_dir/environment-setup-@REAL_MULTIMACH_TARGET_SYS@" ]; then | 102 | if [ -e "$target_sdk_dir/environment-setup-@REAL_MULTIMACH_TARGET_SYS@" ]; then |