[rtems-tools commit] tester: Add option to specify how to load image with QEMU

Daniel Hellstrom danielh at rtems.org
Tue Sep 6 14:29:55 UTC 2022


Module:    rtems-tools
Branch:    master
Commit:    a5d0291cccf18d71e36f734985de220fe96ae24a
Changeset: http://git.rtems.org/rtems-tools/commit/?id=a5d0291cccf18d71e36f734985de220fe96ae24a

Author:    Daniel Cederman <cederman at gaisler.com>
Date:      Fri Aug 19 16:12:43 2022 +0200

tester: Add option to specify how to load image with QEMU

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}



More information about the vc mailing list