diff options
author | Dennis Menschel <menschel-d@posteo.de> | 2018-06-13 20:28:15 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-18 11:07:57 +0100 |
commit | 959aae0c2b4c7b7f0342c825890fdd64b3f08d66 (patch) | |
tree | 5564a07871e758c589cd9bb752e48de8e4d2413f /scripts/runqemu-extract-sdk | |
parent | 37ae135dc0badd775ee8042e3264db2be6621a46 (diff) | |
download | poky-959aae0c2b4c7b7f0342c825890fdd64b3f08d66.tar.gz |
runqemu-extract-sdk: support tar.xz format
As the format "tar.xz" is included in the IMAGE_TYPES bitbake variable
as defined in meta/classes/image_types.bbclass, it should also be
possible to extract a rootfs that has been built using that format.
(From OE-Core rev: f813ca7b085c7ddf76a34932e2b3f5bc3372b239)
Signed-off-by: Dennis Menschel <menschel-d@posteo.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-extract-sdk')
-rwxr-xr-x | scripts/runqemu-extract-sdk | 5 |
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 | |||
53 | fi | 53 | fi |
54 | 54 | ||
55 | TAR_OPTS="" | 55 | TAR_OPTS="" |
56 | if [[ "$ROOTFS_TARBALL" =~ tar\.xz$ ]]; then | ||
57 | TAR_OPTS="--numeric-owner -xJf" | ||
58 | fi | ||
56 | if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then | 59 | if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then |
57 | TAR_OPTS="--numeric-owner -xjf" | 60 | TAR_OPTS="--numeric-owner -xjf" |
58 | fi | 61 | fi |
@@ -64,7 +67,7 @@ if [[ "$ROOTFS_TARBALL" =~ \.tar$ ]]; then | |||
64 | fi | 67 | fi |
65 | if [ -z "$TAR_OPTS" ]; then | 68 | if [ -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 |
69 | fi | 72 | fi |
70 | 73 | ||