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>
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