aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2019-05-19 10:19:47 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2019-05-19 10:19:47 +0100
commit8d61c8c69dea1a7696ca449db767e36048f1baf5 (patch)
tree2bc9465cbcaabf07972ab939edddee048fd9352d
parentcbd822f6d67378fcbef17d28049aea04ee4c69e0 (diff)
downloadvminstall-8d61c8c69dea1a7696ca449db767e36048f1baf5.tar.gz
Add WITHDTB configuration variable
Allows the guest to be run with a specific DTB instead of the one generated with QEMU. It still has to match the HW somehow... Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rwxr-xr-xrunefivm.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/runefivm.sh b/runefivm.sh
index 85cc556..5e9cede 100755
--- a/runefivm.sh
+++ b/runefivm.sh
@@ -14,6 +14,7 @@ qemu=${QEMU-/usr/bin/qemu-system-aarch64}
accel=${ACCEL-kvm}
cputype=${CPUTYPE-host}
dumpdtb=${DUMPDTB}
+withdtb=${WITHDTB}
if [ "$bit" = 64 ]; then
sf=on
@@ -120,6 +121,10 @@ EOF
dtc -I dts -O dtb -o $dtb $dts
) && forcedtb="-dtb $dtb"
+if [ ! -z "$withdtb" ]; then
+ forcedtb="-dtb $withdtb"
+fi
+
rm $dts
eval "$qemu $forcedtb $args"
rm $dtb