[PATCH v5 02/25] RFC: scripts: build-qemu: Support xPL with ARM
Simon Glass
sjg at chromium.org
Wed May 28 14:32:04 CEST 2025
Add a -x flag to build/run xPL instead of the normal build.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v5:
- Add RFC for test script
scripts/build-qemu | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/scripts/build-qemu b/scripts/build-qemu
index 5798da3775c..8527e4b879e 100755
--- a/scripts/build-qemu
+++ b/scripts/build-qemu
@@ -61,6 +61,8 @@ def parse_args():
help='Show executed commands')
parser.add_argument('-r', '--run', action='store_true',
help='Run QEMU with the built/specified image')
+ parser.add_argument('-x', '--xpl', action='store_true',
+ help='Use xPL image rather than U-Boot proper')
parser.add_argument(
'-R', '--release', default='24.04.1',
help='Select OS release version (e.g, 24.04) Default: 24.04.1')
@@ -142,15 +144,22 @@ class BuildQemu:
# arch-specific setup
if args.arch == 'arm':
- self.board = 'qemu_arm'
- default_bios = 'u-boot.bin'
+ if args.xpl:
+ self.board = 'qemu_arm_spl'
+ default_bios = 'image.bin'
+ else:
+ self.board = 'qemu_arm'
+ default_bios = 'u-boot.bin'
self.qemu = 'qemu-system-arm'
self.qemu_extra.extend(['-machine', 'virt'])
if not args.kvm:
self.qemu_extra.extend(['-accel', 'tcg'])
qemu_arch = 'arm'
if self.bitness == 64:
- self.board = 'qemu_arm64'
+ if args.xpl:
+ self.board = 'qemu_arm64_spl'
+ else:
+ self.board = 'qemu_arm64'
self.qemu = 'qemu-system-aarch64'
self.qemu_extra.extend(['-cpu', 'cortex-a57'])
qemu_arch = 'arm64'
--
2.43.0
More information about the U-Boot
mailing list