diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-01 11:55:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-06 22:32:42 +0100 |
commit | 45f3bdce4423387acf0e8e303f40a59294943370 (patch) | |
tree | 0c9e0c77ea350d139cc9f85a9b0080b5dd86907a | |
parent | b5f38c5ce3d16d79076cd5e0f43337bbc9be9d99 (diff) | |
download | poky-45f3bdce4423387acf0e8e303f40a59294943370.tar.gz |
bitbake/conf: Default to zstd compressed image output
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.
(From OE-Core rev: aa5f60d1fcb716a2b2174dffcaf35442bff1f1fb)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb | 2 | ||||
-rw-r--r-- | meta/classes-recipe/qemuboot.bbclass | 2 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 4 | ||||
-rw-r--r-- | meta/conf/machine/include/qemu.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/include/riscv/qemuriscv.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/include/x86/x86-base.inc | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/gdbserver.py | 1 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 6 |
8 files changed, 14 insertions, 7 deletions
diff --git a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb index d7785cee2e..f6cf0a47c8 100644 --- a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb +++ b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb | |||
@@ -3,7 +3,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 | |||
3 | 3 | ||
4 | MCMACHINE:virtclass-mcextend-musl = "qemux86-64" | 4 | MCMACHINE:virtclass-mcextend-musl = "qemux86-64" |
5 | MCMACHINE:virtclass-mcextend-tiny = "qemux86" | 5 | MCMACHINE:virtclass-mcextend-tiny = "qemux86" |
6 | MCIMGTYPE:virtclass-mcextend-musl = "ext4" | 6 | MCIMGTYPE:virtclass-mcextend-musl = "ext4.zst" |
7 | MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz" | 7 | MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz" |
8 | 8 | ||
9 | MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}" | 9 | MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}" |
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass index 0f80c60ab5..69cd12ec54 100644 --- a/meta/classes-recipe/qemuboot.bbclass +++ b/meta/classes-recipe/qemuboot.bbclass | |||
@@ -97,7 +97,7 @@ QB_MEM ?= "-m 256" | |||
97 | QB_SMP ?= "" | 97 | QB_SMP ?= "" |
98 | QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" | 98 | QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" |
99 | QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}", d)}" | 99 | QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}", d)}" |
100 | QB_DEFAULT_FSTYPE ?= "ext4" | 100 | QB_DEFAULT_FSTYPE ?= "ext4.zst" |
101 | QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" | 101 | QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" |
102 | QB_OPT_APPEND ?= "" | 102 | QB_OPT_APPEND ?= "" |
103 | QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" | 103 | QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index fb26e72669..fad397776e 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -839,8 +839,8 @@ include conf/bblock.conf | |||
839 | 839 | ||
840 | DL_DIR ?= "${TOPDIR}/downloads" | 840 | DL_DIR ?= "${TOPDIR}/downloads" |
841 | SSTATE_DIR ?= "${TOPDIR}/sstate-cache" | 841 | SSTATE_DIR ?= "${TOPDIR}/sstate-cache" |
842 | IMAGE_FSTYPES ?= "tar.gz" | 842 | IMAGE_FSTYPES ?= "tar.zst" |
843 | IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" | 843 | IMAGE_FSTYPES_DEBUGFS ?= "tar.zst" |
844 | 844 | ||
845 | INITRAMFS_FSTYPES ?= "cpio.gz" | 845 | INITRAMFS_FSTYPES ?= "cpio.gz" |
846 | # The maximum size in Kbytes for the generated initramfs image size. | 846 | # The maximum size in Kbytes for the generated initramfs image size. |
diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc index c143e37f71..79016ad9cc 100644 --- a/meta/conf/machine/include/qemu.inc +++ b/meta/conf/machine/include/qemu.inc | |||
@@ -8,7 +8,7 @@ MACHINE_FEATURES = "alsa bluetooth usbgadget screen vfat" | |||
8 | 8 | ||
9 | MACHINEOVERRIDES =. "qemuall:" | 9 | MACHINEOVERRIDES =. "qemuall:" |
10 | 10 | ||
11 | IMAGE_FSTYPES += "tar.bz2 ext4" | 11 | IMAGE_FSTYPES += "tar.zst ext4.zst" |
12 | 12 | ||
13 | # Don't include kernels in standard images | 13 | # Don't include kernels in standard images |
14 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" | 14 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" |
diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc index 65cbfd66ee..3596127202 100644 --- a/meta/conf/machine/include/riscv/qemuriscv.inc +++ b/meta/conf/machine/include/riscv/qemuriscv.inc | |||
@@ -11,7 +11,7 @@ KEEPUIMAGE = "no" | |||
11 | 11 | ||
12 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0" | 12 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0" |
13 | 13 | ||
14 | IMAGE_FSTYPES += "ext4 wic.qcow2" | 14 | IMAGE_FSTYPES += "ext4.zst wic.qcow2" |
15 | 15 | ||
16 | WKS_FILE ?= "qemuriscv.wks" | 16 | WKS_FILE ?= "qemuriscv.wks" |
17 | 17 | ||
diff --git a/meta/conf/machine/include/x86/x86-base.inc b/meta/conf/machine/include/x86/x86-base.inc index fc6c39148d..fc8200d8f0 100644 --- a/meta/conf/machine/include/x86/x86-base.inc +++ b/meta/conf/machine/include/x86/x86-base.inc | |||
@@ -8,7 +8,7 @@ | |||
8 | MACHINE_FEATURES += "screen keyboard pci usbhost ext2 ext3 x86 \ | 8 | MACHINE_FEATURES += "screen keyboard pci usbhost ext2 ext3 x86 \ |
9 | acpi serial usbgadget alsa" | 9 | acpi serial usbgadget alsa" |
10 | 10 | ||
11 | IMAGE_FSTYPES ?= "wic" | 11 | IMAGE_FSTYPES ?= "wic.zst" |
12 | 12 | ||
13 | KERNEL_IMAGETYPE ?= "bzImage" | 13 | KERNEL_IMAGETYPE ?= "bzImage" |
14 | 14 | ||
diff --git a/meta/lib/oeqa/selftest/cases/gdbserver.py b/meta/lib/oeqa/selftest/cases/gdbserver.py index b6b7c5c473..1c71333190 100644 --- a/meta/lib/oeqa/selftest/cases/gdbserver.py +++ b/meta/lib/oeqa/selftest/cases/gdbserver.py | |||
@@ -19,6 +19,7 @@ class GdbServerTest(OESelftestTestCase): | |||
19 | 19 | ||
20 | features = """ | 20 | features = """ |
21 | IMAGE_GEN_DEBUGFS = "1" | 21 | IMAGE_GEN_DEBUGFS = "1" |
22 | IMAGE_FSTYPES += "tar.bz2" | ||
22 | IMAGE_FSTYPES_DEBUGFS = "tar.bz2" | 23 | IMAGE_FSTYPES_DEBUGFS = "tar.bz2" |
23 | CORE_IMAGE_EXTRA_INSTALL = "gdbserver" | 24 | CORE_IMAGE_EXTRA_INSTALL = "gdbserver" |
24 | """ | 25 | """ |
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index 74d47a6db1..7ed89e80de 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py | |||
@@ -195,6 +195,12 @@ class QemuTest(OESelftestTestCase): | |||
195 | cls.cmd_common = "runqemu nographic snapshot" | 195 | cls.cmd_common = "runqemu nographic snapshot" |
196 | cls.qemuboot_conf = "%s.qemuboot.conf" % (cls.image_link_name) | 196 | cls.qemuboot_conf = "%s.qemuboot.conf" % (cls.image_link_name) |
197 | cls.qemuboot_conf = os.path.join(cls.deploy_dir_image, cls.qemuboot_conf) | 197 | cls.qemuboot_conf = os.path.join(cls.deploy_dir_image, cls.qemuboot_conf) |
198 | |||
199 | cls.write_config(cls, | ||
200 | """ | ||
201 | IMAGE_FSTYPES += "tar.bz2" | ||
202 | """) | ||
203 | |||
198 | bitbake(cls.recipe) | 204 | bitbake(cls.recipe) |
199 | 205 | ||
200 | def _start_qemu_shutdown_check_if_shutdown_succeeded(self, qemu, timeout): | 206 | def _start_qemu_shutdown_check_if_shutdown_succeeded(self, qemu, timeout): |