tool/run: read board-specific qemu args from file

Allow specifying additional qemu arguments for externally supported boards
(e.g. zynq_qemu) by adding a `qemu_args` file in the board-property directory.

The syntax of the qemu_args file is as follows:
- Arguments can appear in a single line or in multiple lines as the
  lines will be appended (separated by a whitespace) to the global
  qemu_args variable.
- If the line is prepended with a `foobar:` expression. The arguments
  are only added if the foobar spec is present.

Note, that a `-m` argument specified in the qemu_args file will
override the arguments provided by the run scripts.

genodelabs/genode#4311
This commit is contained in:
Johannes Schlatow
2021-08-18 16:17:03 +02:00
committed by Christian Helmuth
parent c0c2ed2bf5
commit 522a1cdc5b
7 changed files with 69 additions and 39 deletions

View File

@@ -0,0 +1 @@
-m 768 -M realview-pbx-a9

View File

@@ -0,0 +1 @@
-machine q35

View File

@@ -0,0 +1,2 @@
-m 128 -machine virt -cpu rv64,priv_spec=v1.10.0
-bios default

View File

@@ -0,0 +1 @@
-M raspi3 -m 1024

View File

@@ -0,0 +1,6 @@
-m 2048
-global virtio-mmio.force-legacy=false
-device virtio-mouse-device
-device virtio-keyboard-device
arm_v8a: -M virt,virtualization=true,gic-version=3 -cpu cortex-a53 -smp 4
arm_v7a: -M virt,virtualization=true -cpu cortex-a15 -smp 2