Patchwork [v3,3/3] configure: permit compilation on arm aarch64

login
register
mail settings
Submitter Claudio Fontana
Date May 28, 2013, 3:30 p.m.
Message ID <51A4CD90.904@huawei.com>
Download mbox | patch
Permalink /patch/246911/
State New
Headers show

Comments

Claudio Fontana - May 28, 2013, 3:30 p.m.
support compiling on aarch64.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch

diff --git a/configure b/configure
index eb74510..f021bdd 100755
--- a/configure
+++ b/configure
@@ -385,6 +385,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
@@ -407,6 +409,9 @@  case "$cpu" in
   armv*b|armv*l|arm)
     cpu="arm"
   ;;
+  aarch64)
+    cpu="aarch64"
+  ;;
   hppa|parisc|parisc64)
     cpu="hppa"
   ;;
@@ -4127,6 +4132,9 @@  if test "$linux" = "yes" ; then
   s390x)
     linux_arch=s390
     ;;
+  aarch64)
+    linux_arch=arm64
+    ;;
   *)
     # For most CPUs the kernel architecture name and QEMU CPU name match.
     linux_arch="$cpu"