diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2020-03-11 20:29:02 +0200 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2020-03-11 20:29:02 +0200 |
commit | b8b1fe7b3888f12891c708204c61e15a10dfd206 (patch) | |
tree | 18edd82529f20f3f34996ffa2069130199df920d | |
parent | 677d008a945ca7f92787ab761ad8bee47c517d5a (diff) |
scripts: qemu: Fix ovmf for armv8/armv7
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rwxr-xr-x | qemu/run_qemu.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qemu/run_qemu.sh b/qemu/run_qemu.sh index 1f03223..07d3899 100755 --- a/qemu/run_qemu.sh +++ b/qemu/run_qemu.sh @@ -44,11 +44,12 @@ case "$arch" in ;; aarch64) extra_args+=' -cpu cortex-a57 ' - extra_args+=' -bios bl1.bin ' if [ "$firmware" = 'ovmf' ]; then extra_args+=' -machine virt' + extra_args+=" -bios $ovmf_file" else + extra_args+=' -bios bl1.bin ' extra_args+=' -machine virt,secure=on ' extra_args+=' -d unimp -semihosting-config enable,target=native' extra_args+=' -dtb ledge-qemuarm64.dtb ' @@ -58,12 +59,12 @@ case "$arch" in ;; arm) extra_args+=' -cpu cortex-a15 ' - extra_args+=' -bios bl1.bin ' if [ "$firmware" = 'ovmf' ]; then - echo "OVMF on armv7 not supported yet" - exit 1 + extra_args+=' -machine virt' + extra_args+=" -bios $ovmf_file" else + extra_args+=' -bios bl1.bin ' extra_args+=' -no-reboot' extra_args+=' -machine virt,secure=on ' extra_args+=' -d unimp -semihosting-config enable,target=native' |