qemu: Try to automatically boot from the QEMU firmware device (qfw)
authorAndre Przywara <andre.przywara@arm.com>
Mon, 10 Oct 2022 17:01:22 +0000 (18:01 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 21 Oct 2022 20:06:14 +0000 (16:06 -0400)
commitd6d8720c3f273f412ca1e2f6436b1ae11904161d
tree7caf2e41938bdc0d49be6a5ea1201ae67e53ce85
parent2f6c45eb6870989372d62afa365380aa44448bf3
qemu: Try to automatically boot from the QEMU firmware device (qfw)

At the moment the QEMU boot sequence tries various (storage) devices
when trying to find a payload to boot.
To simplify starting a specific kernel and initrd, there is also the qfw
command, which can use the files specified on the QEMU command line, via
the -kernel and -initrd options.
Add this command to the list of boot options to try. Since users
specifying those options on the command line probably explicitly want
to run them, let's place the new command first. Without those options,
the qfw command will just gracefully fail, and we continue with the
existing order.

This allows auto-booting of specific kernels in QEMU, for instance in CI
systems.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
include/configs/qemu-arm.h