diff options
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 8cb8783f97..0a33ee8f5d 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
@@ -71,6 +71,8 @@ if [ $verbose = 1 ] ; then | |||
71 | set -x | 71 | set -x |
72 | fi | 72 | fi |
73 | 73 | ||
74 | @SDK_PRE_INSTALL_COMMAND@ | ||
75 | |||
74 | if [ "$target_sdk_dir" = "" ]; then | 76 | if [ "$target_sdk_dir" = "" ]; then |
75 | read -e -p "Enter target directory for SDK (default: $DEFAULT_INSTALL_DIR): " target_sdk_dir | 77 | read -e -p "Enter target directory for SDK (default: $DEFAULT_INSTALL_DIR): " target_sdk_dir |
76 | [ "$target_sdk_dir" = "" ] && target_sdk_dir=$DEFAULT_INSTALL_DIR | 78 | [ "$target_sdk_dir" = "" ] && target_sdk_dir=$DEFAULT_INSTALL_DIR |
@@ -116,6 +118,11 @@ mkdir -p $target_sdk_dir >/dev/null 2>&1 | |||
116 | 118 | ||
117 | # if don't have the right to access dir, gain by sudo | 119 | # if don't have the right to access dir, gain by sudo |
118 | if [ ! -x $target_sdk_dir -o ! -w $target_sdk_dir -o ! -r $target_sdk_dir ]; then | 120 | if [ ! -x $target_sdk_dir -o ! -w $target_sdk_dir -o ! -r $target_sdk_dir ]; then |
121 | if [ "$SDK_EXTENSIBLE" = "1" ]; then | ||
122 | echo "Unable to access \"$target_sdk_dir\"." | ||
123 | exit 1 | ||
124 | fi | ||
125 | |||
119 | SUDO_EXEC=$(which "sudo") | 126 | SUDO_EXEC=$(which "sudo") |
120 | if [ -z $SUDO_EXEC ]; then | 127 | if [ -z $SUDO_EXEC ]; then |
121 | echo "No command 'sudo' found, please install sudo first. Abort!" | 128 | echo "No command 'sudo' found, please install sudo first. Abort!" |