cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
05bba0
From f4e64f793b273e319587b9052c9f8cde77b6db52 Mon Sep 17 00:00:00 2001
05bba0
From: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
Date: Tue, 2 Jun 2015 13:21:52 +0200
05bba0
Subject: [PATCH 5/8] configure: permit compilation on arm aarch64
05bba0
05bba0
Message-id: <40b5931574ca633cff2c4a27507680b321009906.1433250807.git.mrezanin@redhat.com>
05bba0
Patchwork-id: 65307
05bba0
O-Subject: [RHEL-7.2 qemu-kvm PATCH 3/4] configure: permit compilation on arm aarch64
05bba0
Bugzilla: 1217850
05bba0
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
05bba0
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
05bba0
RH-Acked-by: Wei Huang <wei@redhat.com>
05bba0
RH-Acked-by: Jeff Nelson <jenelson@redhat.com>
05bba0
05bba0
From: Claudio Fontana <claudio.fontana@huawei.com>
05bba0
05bba0
support compiling on aarch64.
05bba0
05bba0
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
05bba0
Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
05bba0
Reviewed-by: Richard Henderson <rth@twiddle.net>
05bba0
Message-id: 51A5C5ED.90103@huawei.com
05bba0
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
05bba0
(cherry-picked from 1f0803137df68c1fc02ebd0c5ec2e7aad54bbf3b)
05bba0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
05bba0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
05bba0
---
05bba0
 configure | 8 ++++++++
05bba0
 1 file changed, 8 insertions(+)
05bba0
05bba0
diff --git a/configure b/configure
05bba0
index 7cc7725..85dbfb0 100755
05bba0
--- a/configure
05bba0
+++ b/configure
05bba0
@@ -394,6 +394,8 @@ elif check_define __s390__ ; then
05bba0
   fi
05bba0
 elif check_define __arm__ ; then
05bba0
   cpu="arm"
05bba0
+elif check_define __aarch64__ ; then
05bba0
+  cpu="aarch64"
05bba0
 elif check_define __hppa__ ; then
05bba0
   cpu="hppa"
05bba0
 else
05bba0
@@ -416,6 +418,9 @@ case "$cpu" in
05bba0
   armv*b|armv*l|arm)
05bba0
     cpu="arm"
05bba0
   ;;
05bba0
+  aarch64)
05bba0
+    cpu="aarch64"
05bba0
+  ;;
05bba0
   hppa|parisc|parisc64)
05bba0
     cpu="hppa"
05bba0
   ;;
05bba0
@@ -4306,6 +4311,9 @@ if test "$linux" = "yes" ; then
05bba0
   s390x)
05bba0
     linux_arch=s390
05bba0
     ;;
05bba0
+  aarch64)
05bba0
+    linux_arch=arm64
05bba0
+    ;;
05bba0
   *)
05bba0
     # For most CPUs the kernel architecture name and QEMU CPU name match.
05bba0
     linux_arch="$cpu"
05bba0
-- 
05bba0
1.8.3.1
05bba0