]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/conf: Default to zstd compressed image output master
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Aug 2025 10:55:13 +0000 (11:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Aug 2025 21:32:18 +0000 (22:32 +0100)
Switch our default qemu images to use .zst compressed images by default
since this is the output format we release during the release process
and is the one that users would prefer to download. This makes the release
process use the actual generated output from the system and avoids post
processing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
meta/classes-recipe/qemuboot.bbclass
meta/conf/bitbake.conf
meta/conf/machine/include/qemu.inc
meta/conf/machine/include/riscv/qemuriscv.inc
meta/conf/machine/include/x86/x86-base.inc
meta/lib/oeqa/selftest/cases/gdbserver.py
meta/lib/oeqa/selftest/cases/runqemu.py

index d7785cee2e1311a87bbfe58bcaa8bf311f47add6..f6cf0a47c892357c37e7906d8d13d2c269ff0847 100644 (file)
@@ -3,7 +3,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
 
 MCMACHINE:virtclass-mcextend-musl = "qemux86-64"
 MCMACHINE:virtclass-mcextend-tiny = "qemux86"
-MCIMGTYPE:virtclass-mcextend-musl = "ext4"
+MCIMGTYPE:virtclass-mcextend-musl = "ext4.zst"
 MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz"
 
 MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
index 0f80c60ab58f4aec2a95f6a8fff175a2c3446203..69cd12ec5456f90561c88557cc4e7680a7c5a000 100644 (file)
@@ -97,7 +97,7 @@ QB_MEM ?= "-m 256"
 QB_SMP ?= ""
 QB_SERIAL_OPT ?= "-serial mon:stdio -serial null"
 QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}", d)}"
-QB_DEFAULT_FSTYPE ?= "ext4"
+QB_DEFAULT_FSTYPE ?= "ext4.zst"
 QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
 QB_OPT_APPEND ?= ""
 QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@"
index fb26e72669c5810df62787aa3f1be48763378ed2..fad397776e09cce781f901a99eab3b1098d5fa2c 100644 (file)
@@ -839,8 +839,8 @@ include conf/bblock.conf
 
 DL_DIR ?= "${TOPDIR}/downloads"
 SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
-IMAGE_FSTYPES ?= "tar.gz"
-IMAGE_FSTYPES_DEBUGFS ?= "tar.gz"
+IMAGE_FSTYPES ?= "tar.zst"
+IMAGE_FSTYPES_DEBUGFS ?= "tar.zst"
 
 INITRAMFS_FSTYPES ?= "cpio.gz"
 # The maximum size in Kbytes for the generated initramfs image size.
index c143e37f710e4d0361f439f39e8dd9ecd6b52d45..79016ad9cce10dbf92ef05d1f4bee189aafc423c 100644 (file)
@@ -8,7 +8,7 @@ MACHINE_FEATURES = "alsa bluetooth usbgadget screen vfat"
 
 MACHINEOVERRIDES =. "qemuall:"
 
-IMAGE_FSTYPES += "tar.bz2 ext4"
+IMAGE_FSTYPES += "tar.zst ext4.zst"
 
 # Don't include kernels in standard images
 RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""
index 65cbfd66ee4b5069825f627c07e46295b55e08af..35961272022b48324bbd772b51b6ad54ecb6c092 100644 (file)
@@ -11,7 +11,7 @@ KEEPUIMAGE = "no"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
 
-IMAGE_FSTYPES += "ext4 wic.qcow2"
+IMAGE_FSTYPES += "ext4.zst wic.qcow2"
 
 WKS_FILE ?= "qemuriscv.wks"
 
index fc6c39148dbe33a659afa7f2bf69dd84abd9c4b2..fc8200d8f097df2018c47ebfb921b415e595cfdb 100644 (file)
@@ -8,7 +8,7 @@
 MACHINE_FEATURES += "screen keyboard pci usbhost ext2 ext3 x86 \
                      acpi serial usbgadget alsa"
 
-IMAGE_FSTYPES ?= "wic"
+IMAGE_FSTYPES ?= "wic.zst"
 
 KERNEL_IMAGETYPE ?= "bzImage"
 
index b6b7c5c47337453a49d4aa90166e148eab9038b6..1c713331900846db843ee1e1a6c394e7785da9d6 100644 (file)
@@ -19,6 +19,7 @@ class GdbServerTest(OESelftestTestCase):
 
         features = """
 IMAGE_GEN_DEBUGFS = "1"
+IMAGE_FSTYPES += "tar.bz2"
 IMAGE_FSTYPES_DEBUGFS = "tar.bz2"
 CORE_IMAGE_EXTRA_INSTALL = "gdbserver"
         """
index 74d47a6db1bcebc871140c4d82bdff2df5928218..7ed89e80de8bbce57e849c6143354206d6334e9d 100644 (file)
@@ -195,6 +195,12 @@ class QemuTest(OESelftestTestCase):
         cls.cmd_common = "runqemu nographic snapshot"
         cls.qemuboot_conf = "%s.qemuboot.conf" % (cls.image_link_name)
         cls.qemuboot_conf = os.path.join(cls.deploy_dir_image, cls.qemuboot_conf)
+
+        cls.write_config(cls,
+"""
+IMAGE_FSTYPES += "tar.bz2"
+""")
+
         bitbake(cls.recipe)
 
     def _start_qemu_shutdown_check_if_shutdown_succeeded(self, qemu, timeout):