[PATCH 1/2] tester: Add option to specify how to load image with QEMU
Daniel Cederman
cederman at gaisler.com
Fri Aug 19 14:16:31 UTC 2022
Defaults to "-kernel", but can be changed to, for example, "-bios".
---
tester/rtems/testing/qemu.cfg | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tester/rtems/testing/qemu.cfg b/tester/rtems/testing/qemu.cfg
index 3c51bee..0b592ef 100644
--- a/tester/rtems/testing/qemu.cfg
+++ b/tester/rtems/testing/qemu.cfg
@@ -78,6 +78,9 @@
%ifn %{defined bsp_qemu_extra_opts}
%define bsp_qemu_extra_opts %{nil}
%endif
+%ifn %{defined bsp_qemu_image_type}
+ %define bsp_qemu_image_type -kernel
+%endif
%define qemu_cmd qemu-system-%{bsp_arch}
%define qemu_opts %{bsp_qemu_opts} %{bsp_qemu_cov_opts}
@@ -85,4 +88,4 @@
#
# Executable
#
-%execute %{qemu_cmd} %{qemu_opts} %{bsp_qemu_extra_opts} -kernel %{test_executable}
+%execute %{qemu_cmd} %{qemu_opts} %{bsp_qemu_extra_opts} %{bsp_qemu_image_type} %{test_executable}
--
2.34.1
More information about the devel
mailing list