* [PATCH 1/2] arm-bsp/wic: consolidate EFI disk WKS files
@ 2026-11-23 16:35 Jon Mason
2026-11-23 16:35 ` [PATCH 2/2] arm/wic: consolidate QEMU U-Boot " Jon Mason
0 siblings, 1 reply; 2+ messages in thread
From: Jon Mason @ 2026-11-23 16:35 UTC (permalink / raw)
To: meta-arm
Remove the duplicate QEMU EFI disk template and use
efi-disk.wks.in for SBSA. Include a DTB only when
KERNEL_DTB_NAME is set, so the template works with and
without a device tree.
Keep the kernel console in the boot arguments. Add
EFI_DISK_BOOT_ARGS so sbsa-ref can pass ip=dhcp for testimage.
Set that argument in its CI configuration; future users of
this WKS file can add other kernel parameters the same way.
Signed-off-by: Jon Mason <jon.mason@arm.com>
---
ci/sbsa-ref.yml | 6 ++++++
meta-arm-bsp/conf/machine/sbsa-ref.conf | 8 +-------
meta-arm/files/wic/efi-disk.wks.in | 4 ++--
meta-arm/files/wic/qemu-efi-disk.wks.in | 11 -----------
4 files changed, 9 insertions(+), 20 deletions(-)
delete mode 100644 meta-arm/files/wic/qemu-efi-disk.wks.in
diff --git a/ci/sbsa-ref.yml b/ci/sbsa-ref.yml
index 99e4ed716d01..704a53c6088e 100644
--- a/ci/sbsa-ref.yml
+++ b/ci/sbsa-ref.yml
@@ -10,3 +10,9 @@ machine: sbsa-ref
target:
- core-image-sato
- sbsa-acs
+
+local_conf_header:
+ testimage_network: |
+ # QEMU boots firmware instead of a kernel, so put the network argument
+ # in the EFI disk for testimage.
+ EFI_DISK_BOOT_ARGS:append = " ip=dhcp"
diff --git a/meta-arm-bsp/conf/machine/sbsa-ref.conf b/meta-arm-bsp/conf/machine/sbsa-ref.conf
index 82d55c9b3d7a..96341f435b7b 100644
--- a/meta-arm-bsp/conf/machine/sbsa-ref.conf
+++ b/meta-arm-bsp/conf/machine/sbsa-ref.conf
@@ -13,13 +13,7 @@ MACHINE_FEATURES = " alsa bluetooth efi qemu-usermode rtc screen usbhost vfat wi
IMAGE_FSTYPES += "wic.qcow2"
-# This unique WIC file is necessary because kernel boot args cannot be passed
-# because there is no default kernel (see below). There is no default kernel
-# because QEMU will only allow firmware or kernel to be passed in as a
-# parameter, and we need the firmware. So, to allow for "ip=dhcp" as a kernel
-# boot arg (which we need for testimage), we have to have a WIC file unique to
-# this platform.
-WKS_FILE = "qemu-efi-disk.wks.in"
+WKS_FILE = "efi-disk.wks.in"
EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
diff --git a/meta-arm/files/wic/efi-disk.wks.in b/meta-arm/files/wic/efi-disk.wks.in
index e1120da056cd..a21e5b7fa433 100644
--- a/meta-arm/files/wic/efi-disk.wks.in
+++ b/meta-arm/files/wic/efi-disk.wks.in
@@ -2,10 +2,10 @@
# long-description: Creates a partitioned EFI disk image that the user
# can directly dd to boot media.
-part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER},dtb=${KERNEL_DTB_NAME}" --label boot --active --align 1024 --use-uuid
+part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}${@',dtb=' + d.getVar('KERNEL_DTB_NAME') if d.getVar('KERNEL_DTB_NAME') else ''}" --label boot --active --align 1024 --use-uuid
part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
part swap --size 44 --label swap --fstype=swap --use-uuid
-bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 console=${KERNEL_CONSOLE}"
+bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 console=${KERNEL_CONSOLE} ${@d.getVar('EFI_DISK_BOOT_ARGS') or ''}"
diff --git a/meta-arm/files/wic/qemu-efi-disk.wks.in b/meta-arm/files/wic/qemu-efi-disk.wks.in
deleted file mode 100644
index 100d0edbd6a4..000000000000
--- a/meta-arm/files/wic/qemu-efi-disk.wks.in
+++ /dev/null
@@ -1,11 +0,0 @@
-# short-description: Create an EFI disk image
-# long-description: Creates a partitioned EFI disk image that the user
-# can directly dd to boot media.
-
-part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --label boot --active --align 1024 --use-uuid
-
-part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
-
-part swap --size 44 --label swap --fstype=swap --use-uuid
-
-bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 ip=dhcp"
--
2.54.0 (Apple Git-157)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] arm/wic: consolidate QEMU U-Boot WKS files
2026-11-23 16:35 [PATCH 1/2] arm-bsp/wic: consolidate EFI disk WKS files Jon Mason
@ 2026-11-23 16:35 ` Jon Mason
0 siblings, 0 replies; 2+ messages in thread
From: Jon Mason @ 2026-11-23 16:35 UTC (permalink / raw)
To: meta-arm
Replace the qemuarm and qemuarm64 WKS files with one template.
The only layout difference is the U-Boot config file name,
which each machine now supplies.
Signed-off-by: Jon Mason <jon.mason@arm.com>
---
meta-arm/conf/machine/qemuarm-secureboot.conf | 3 ++-
meta-arm/conf/machine/qemuarm64-secureboot.conf | 3 ++-
meta-arm/files/wic/{qemuarm.wks => qemu-u-boot.wks.in} | 2 +-
meta-arm/files/wic/qemuarm64.wks | 4 ----
4 files changed, 5 insertions(+), 7 deletions(-)
rename meta-arm/files/wic/{qemuarm.wks => qemu-u-boot.wks.in} (80%)
delete mode 100644 meta-arm/files/wic/qemuarm64.wks
diff --git a/meta-arm/conf/machine/qemuarm-secureboot.conf b/meta-arm/conf/machine/qemuarm-secureboot.conf
index 2787472bfdbf..abd4c50fc9f6 100644
--- a/meta-arm/conf/machine/qemuarm-secureboot.conf
+++ b/meta-arm/conf/machine/qemuarm-secureboot.conf
@@ -16,7 +16,8 @@ QB_KERNEL_CMDLINE_APPEND = ""
IMAGE_FSTYPES += "wic wic.qcow2"
-WKS_FILE ?= "qemuarm.wks"
+WKS_FILE ?= "qemu-u-boot.wks.in"
+QEMU_WKS_CONFIGFILE = "qemuarm.cfg"
WKS_FILE_DEPENDS = "trusted-firmware-a"
#FIXME - in 2.15.0, new logic for pen hold the SMP cores was added, which breaks this platform. Hold this back until it can be resolved.
PREFERRED_VERSION_trusted-firmware-a ?= "2.14.%"
diff --git a/meta-arm/conf/machine/qemuarm64-secureboot.conf b/meta-arm/conf/machine/qemuarm64-secureboot.conf
index 102166312036..360d265e38fb 100644
--- a/meta-arm/conf/machine/qemuarm64-secureboot.conf
+++ b/meta-arm/conf/machine/qemuarm64-secureboot.conf
@@ -17,7 +17,8 @@ QB_KERNEL_ROOT = "/dev/vda2"
IMAGE_FSTYPES += "wic wic.qcow2"
-WKS_FILE ?= "qemuarm64.wks"
+WKS_FILE ?= "qemu-u-boot.wks.in"
+QEMU_WKS_CONFIGFILE = "qemuarm64.cfg"
WKS_FILE_DEPENDS:append = " trusted-firmware-a"
IMAGE_BOOT_FILES = "${KERNEL_IMAGETYPE}"
diff --git a/meta-arm/files/wic/qemuarm.wks b/meta-arm/files/wic/qemu-u-boot.wks.in
similarity index 80%
rename from meta-arm/files/wic/qemuarm.wks
rename to meta-arm/files/wic/qemu-u-boot.wks.in
index ccd53c286b0c..9d0fb81134aa 100644
--- a/meta-arm/files/wic/qemuarm.wks
+++ b/meta-arm/files/wic/qemu-u-boot.wks.in
@@ -1,4 +1,4 @@
-bootloader --ptable gpt --configfile="qemuarm.cfg"
+bootloader --ptable gpt --configfile="${QEMU_WKS_CONFIGFILE}"
part /boot --ondisk=vda --align 64 --size=100M --active --source bootimg-partition --fstype=ext4 --label boot --sourceparams="loader=u-boot"
part / --ondisk=vda --source rootfs --fstype=ext4 --label root
diff --git a/meta-arm/files/wic/qemuarm64.wks b/meta-arm/files/wic/qemuarm64.wks
deleted file mode 100644
index 9df44c20ee5c..000000000000
--- a/meta-arm/files/wic/qemuarm64.wks
+++ /dev/null
@@ -1,4 +0,0 @@
-bootloader --ptable gpt --configfile="qemuarm64.cfg"
-
-part /boot --ondisk=vda --align 64 --size=100M --active --source bootimg-partition --fstype=ext4 --label boot --sourceparams="loader=u-boot"
-part / --ondisk=vda --source rootfs --fstype=ext4 --label root
--
2.54.0 (Apple Git-157)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-23 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 16:35 [PATCH 1/2] arm-bsp/wic: consolidate EFI disk WKS files Jon Mason
2026-11-23 16:35 ` [PATCH 2/2] arm/wic: consolidate QEMU U-Boot " Jon Mason
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.