summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/files')
-rw-r--r--meta/files/toolchain-shar-extract.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index b1ef4b7668..d844771de0 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -29,6 +29,11 @@ if [ "$INST_ARCH" != "$SDK_ARCH" ]; then
29 fi 29 fi
30fi 30fi
31 31
32if ! xz -V > /dev/null 2>&1; then
33 echo "Error: xz is required for installation of this SDK, please install it first"
34 exit 1
35fi
36
32DEFAULT_INSTALL_DIR="@SDKPATH@" 37DEFAULT_INSTALL_DIR="@SDKPATH@"
33SUDO_EXEC="" 38SUDO_EXEC=""
34target_sdk_dir="" 39target_sdk_dir=""
@@ -168,7 +173,7 @@ fi
168payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1)) 173payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1))
169 174
170printf "Extracting SDK..." 175printf "Extracting SDK..."
171tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 176tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 || exit 1
172echo "done" 177echo "done"
173 178
174printf "Setting it up..." 179printf "Setting it up..."