Skip to content

Commit 87ee160

Browse files
committed
qcom-base.inc: enable tarballs as additional image format
Enable `tar.gz` to be able to populate external media like microSD cards a bit easier. OE-core has `tar.gz` as its default, but BSP layers tend to overwrite that, so DISTROs need to use `:append` to ensure the desired types get generated. Gzip has been picked over xz because of its speed, both in compression as in decompression. With `pigz` installed it scales linearly with the number of CPU cores, removing it as the bottleneck. Signed-off-by: Koen Kooi <[email protected]>
1 parent 20d656b commit 87ee160

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf/distro/include/qcom-base.inc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ IMAGE_FSTYPES += "qcomflash"
2727
# Set a default package class to avoid surprises
2828
PACKAGE_CLASSES = "package_ipk"
2929

30-
# Avoid to duplicate the rootfs tarball by generating both tar.gz/tar.xz
31-
IMAGE_FSTYPES:remove = "tar.gz"
30+
# Force tarballs being generated, some BSP layers overwrite
31+
# IMAGE_FSTYPES, so this appends 'tar.gz' regardless of what the BSP
32+
# tried to remove
33+
IMAGE_FSTYPES:append = " tar.gz"
3234

3335
# Pull in the initrd image by default
3436
INITRAMFS_IMAGE_BUNDLE ?= "1"

0 commit comments

Comments
 (0)