On Mon, 8 Sep 2025 18:23:02 +1000
David Gibson
On Mon, Sep 08, 2025 at 10:10:17AM +0200, Stefano Brivio wrote:
On Mon, 8 Sep 2025 15:33:09 +0800 Yumei Huang
wrote: Fix the following error when running `make assets` under test on non-ARM platforms:
./find-arm64-firmware.sh QEMU_EFI.fd Couldn't find QEMU_EFI.fd make: *** [Makefile:68: QEMU_EFI.fd] Error 1
Hmm, wait, this is needed to run ARM guests, but not necessarily on ARM.
Right.
The test/distro tests (currently skipped) can use QEMU TCG to run ARM guests on (kind of) any host architecture, and actually the only usage I've ever made of find-arm64-firmware.sh is on x86_64.
It still works for me there. On Fedora and related, you need to install the edk2-aarch64 package, and it's qemu-efi-aarch64 on Debian and Debian-based distributions.
The firmware package should be installed as a dependency of qemu-system-aarch64, which is also necessary to run those ARM TCG tests.
It's also mentioned in test/README.md (at least the Debian name for it). We should fix that document altogether, because it doesn't mention 'make' under test/ at all. It's on my list, but I didn't start yet, so it's up for grabs (yes, I should file some more tickets, but I didn't find a moment for that yet). -- Stefano