Browse Source

arm64: try qemu-system-aarch64

Reini Urban 5 years ago
parent
commit
be3a67a7f5
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tools/test.sh

+ 6 - 1
tools/test.sh

@@ -20,10 +20,15 @@ testcc() {
 init() {
 	case "$TARGET" in
 	arm64)
+		qemucmd=qemu-system-aarch64
+		if ! $qemucmd -version >/dev/null 2>&1
+		then
+			qemucmd=qemu-aarch64
+		fi
 		for p in aarch64-linux-musl aarch64-linux-gnu
 		do
 			cc=$p-gcc
-			qemu="qemu-aarch64 -L /usr/$p"
+			qemu="$qemucmd -L /usr/$p"
 			if
 				$cc -v >/dev/null 2>&1 &&
 				$qemu -version >/dev/null 2>&1 &&