From 87ee160a034bd03761bb3e30cf50b27f298c1fa4 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 18 Mar 2025 10:34:51 +0100 Subject: [PATCH] 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 --- conf/distro/include/qcom-base.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/distro/include/qcom-base.inc b/conf/distro/include/qcom-base.inc index 6e7ef284..a196001e 100644 --- a/conf/distro/include/qcom-base.inc +++ b/conf/distro/include/qcom-base.inc @@ -27,8 +27,10 @@ IMAGE_FSTYPES += "qcomflash" # Set a default package class to avoid surprises PACKAGE_CLASSES = "package_ipk" -# Avoid to duplicate the rootfs tarball by generating both tar.gz/tar.xz -IMAGE_FSTYPES:remove = "tar.gz" +# Force tarballs being generated, some BSP layers overwrite +# IMAGE_FSTYPES, so this appends 'tar.gz' regardless of what the BSP +# tried to remove +IMAGE_FSTYPES:append = " tar.gz" # Pull in the initrd image by default INITRAMFS_IMAGE_BUNDLE ?= "1"