]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
runqemu-extract-sdk: support tar.zst format
authorAlex Bradbury <asb@igalia.com>
Wed, 14 Jan 2026 10:26:11 +0000 (10:26 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Jan 2026 17:46:18 +0000 (17:46 +0000)
Building `core-image-minimal-dev` with Poky Whinlatter, the rootfs
tarball is compressed with zstd by default, meaning this script won't
work out of the box with it.

Signed-off-by: Alex Bradbury <asb@igalia.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu-extract-sdk

index db05da25f2999bdf46e14e2a6b76b2c792b1f09c..528ef764308a6fb4aab073a905f5f8aacf51e00c 100755 (executable)
@@ -52,12 +52,15 @@ fi
 if [[ "$ROOTFS_TARBALL" =~ tar\.gz$ ]]; then
        TAR_OPTS="--numeric-owner -xzf"
 fi
+if [[ "$ROOTFS_TARBALL" =~ tar\.zst$ ]]; then
+       TAR_OPTS="--numeric-owner --zstd -xf"
+fi
 if [[ "$ROOTFS_TARBALL" =~ \.tar$ ]]; then
        TAR_OPTS="--numeric-owner -xf"
 fi
 if [ -z "$TAR_OPTS" ]; then
        echo "Error: Unable to determine sdk tarball format"
-       echo "Accepted types: .tar / .tar.gz / .tar.bz2 / .tar.xz"
+       echo "Accepted types: .tar / .tar.gz / .tar.bz2 / .tar.xz / tar.zst"
        exit 1
 fi