public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] test: Fix QEMU_EFI.fd not found error on non-ARM platforms
@ 2025-09-08  7:33 Yumei Huang
  2025-09-08  8:10 ` Stefano Brivio
  0 siblings, 1 reply; 5+ messages in thread
From: Yumei Huang @ 2025-09-08  7:33 UTC (permalink / raw)
  To: passt-dev; +Cc: sbrivio, dgibson, yuhuang

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

Signed-off-by: Yumei Huang <yuhuang@redhat.com>
---
 test/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/Makefile b/test/Makefile
index a774285..32d6b43 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -109,7 +109,11 @@ nstool: nstool.c
 	$(CC) $(CFLAGS) -o $@ $^
 
 QEMU_EFI.fd:
-	./find-arm64-firmware.sh $@
+	if [ "$(shell uname -m)" = "aarch64" ]; then \
+		./find-arm64-firmware.sh $@; \
+	else \
+		echo "QEMU_EFI.fd not needed on $(shell uname -m)" && touch $@; \
+	fi
 
 prepared-%.qcow2: %.qcow2 ./prepare-distro-img.sh
 	qemu-img create -f qcow2 -F qcow2 -b $< $@
-- 
2.47.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-08  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-08  7:33 [PATCH] test: Fix QEMU_EFI.fd not found error on non-ARM platforms Yumei Huang
2025-09-08  8:10 ` Stefano Brivio
2025-09-08  8:23   ` David Gibson
2025-09-08  9:07     ` Yumei Huang
2025-09-08  9:28     ` Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).