summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-extract-sdk
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu-extract-sdk')
-rwxr-xr-xscripts/runqemu-extract-sdk5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/runqemu-extract-sdk b/scripts/runqemu-extract-sdk
index f4286efb1f..13e02fa2ca 100755
--- a/scripts/runqemu-extract-sdk
+++ b/scripts/runqemu-extract-sdk
@@ -53,6 +53,9 @@ if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then
53fi 53fi
54 54
55TAR_OPTS="" 55TAR_OPTS=""
56if [[ "$ROOTFS_TARBALL" =~ tar\.xz$ ]]; then
57 TAR_OPTS="--numeric-owner -xJf"
58fi
56if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then 59if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then
57 TAR_OPTS="--numeric-owner -xjf" 60 TAR_OPTS="--numeric-owner -xjf"
58fi 61fi
@@ -64,7 +67,7 @@ if [[ "$ROOTFS_TARBALL" =~ \.tar$ ]]; then
64fi 67fi
65if [ -z "$TAR_OPTS" ]; then 68if [ -z "$TAR_OPTS" ]; then
66 echo "Error: Unable to determine sdk tarball format" 69 echo "Error: Unable to determine sdk tarball format"
67 echo "Accepted types: .tar / .tar.gz / .tar.bz2" 70 echo "Accepted types: .tar / .tar.gz / .tar.bz2 / .tar.xz"
68 exit 1 71 exit 1
69fi 72fi
70 73