From: Dennis Menschel Date: Wed, 13 Jun 2018 18:28:15 +0000 (+0200) Subject: runqemu-extract-sdk: support tar.xz format X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~17650 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f813ca7b085c7ddf76a34932e2b3f5bc3372b239;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Dennis Menschel Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu-extract-sdk b/scripts/runqemu-extract-sdk index f4286efb1f7..13e02fa2ca3 100755 --- a/scripts/runqemu-extract-sdk +++ b/scripts/runqemu-extract-sdk @@ -53,6 +53,9 @@ if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then fi TAR_OPTS="" +if [[ "$ROOTFS_TARBALL" =~ tar\.xz$ ]]; then + TAR_OPTS="--numeric-owner -xJf" +fi if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then TAR_OPTS="--numeric-owner -xjf" fi @@ -64,7 +67,7 @@ if [[ "$ROOTFS_TARBALL" =~ \.tar$ ]]; then fi if [ -z "$TAR_OPTS" ]; then echo "Error: Unable to determine sdk tarball format" - echo "Accepted types: .tar / .tar.gz / .tar.bz2" + echo "Accepted types: .tar / .tar.gz / .tar.bz2 / .tar.xz" exit 1 fi