Skip to contentSkip to conversation

arm/run: use qemu_binary function for arm

PATCH New Balamuruhan S 1 participant 1 message Apr 21, 2017 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 arm/run: use qemu_binary function for arm

Changes required for arm/run to use the qemu_binary function for seaching the qemu

---
 arm/run | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
arm/run +3 -6
index 2134c9e..696228e 100755
@@ -31,13 +31,10 @@ if [ -z "$ACCEL" ]; then
 	fi
 fi
 
-qemu="${QEMU:-qemu-system-$ARCH_NAME}"
-qpath=$(which $qemu 2>/dev/null)
+# qemu_binary () defined in scripts/arch-run.bash
+qemu_binary
 
-if [ -z "$qpath" ]; then
-	echo $qemu not found.
-	exit 2
-fi
+qpath=$(which $qemu 2>/dev/null)
 
 if ! $qemu -machine '?' 2>&1 | grep 'ARM Virtual Machine' > /dev/null; then
 	echo "$qpath doesn't support mach-virt ('-machine virt'). Exiting."
Signature · 1 line
2.7.4