Skip to contentSkip to conversation

genericarm64: depend on u-boot in testimage

PATCH New Ross Burton 1 participant 1 message May 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genericarm64: depend on u-boot in testimage

genericarm64 supports runqemu, so testimage should work. However, out of the box it does not:

runqemu - ERROR - BIOS .../tmp/deploy/images/genericarm64/u-boot.bin not found

That is because we make the user explicitly build the qemu-targetting u-boot to avoid the confusing situation where they have real hardware but the deploy directory contains a u-boot for qemu.

In automated testing situations, however, we can be a bit more helpful and make testimage depend on u-boot. This will lead to u-boot binaries being in deploy, but at this point the user is already running the images inside a qemu.

---
 meta-yocto-bsp/conf/machine/genericarm64.conf | 3 +++
 1 file changed, 3 insertions(+)
meta-yocto-bsp/conf/machine/genericarm64.conf +3 -0
index 4fa9395b31b..1cb5e46dcf7 100644
@@ -58,3 +58,6 @@ QB_SERIAL_OPT = "-device virtio-serial-pci -chardev null,id=virtcon -device virt
 QB_TCPSERIAL_OPT = "-device virtio-serial-pci -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1,nodelay=on -device virtconsole,chardev=virtcon"
 # Virtio networking
 QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
+
+# If we're running testimage then we're in a qemu, so ensure u-boot is build
+TESTIMAGEDEPENDS:append = " u-boot:do_deploy"
Signature · 1 line
2.34.1