Skip to contentSkip to conversation

configure: Support QEMU cross-compiling for ARM64 host

PATCH New Anup Patel 1 participant 1 message Jan 8, 2013

lore
Share & tools
lore

Anup Patel

author
#0 lore raw

PATCH v2 1/1 configure: Support QEMU cross-compiling for ARM64 host

We should be able to configure QEMU for cross compiling it for ARM64 host.

This patch only tries to make sure that the configure step falls through and atleast QEMU cross-compilation starts.

The rationale behind cpu=aarch64 naming (as commented by Peter Maydell):
For the target architecture name (ie what comes out in the qemu-foo and qemu-system-foo binary names) we generally use the same name that 'uname -m' produces on those machines. In this case that would be "aarch64".

---
 configure |    5 +++++
 1 file changed, 5 insertions(+)
configure +5 -0
index fe18ed2..0bfb8bb 100755
@@ -366,6 +366,8 @@ elif check_define __s390__ ; then
   fi
 elif check_define __arm__ ; then
   cpu="arm"
+elif check_define __aarch64__ ; then
+  cpu="aarch64"
 elif check_define __hppa__ ; then
   cpu="hppa"
 else
@@ -388,6 +390,9 @@ case "$cpu" in
   armv*b|armv*l|arm)
     cpu="arm"
   ;;
+  aarch64)
+    cpu="aarch64"
+  ;;
   hppa|parisc|parisc64)
     cpu="hppa"
   ;;
Signature · 1 line
1.7.9.5