diff mbox

[1/3] configure: permit compilation on arm aarch64

Message ID 5190EA89.1000509@huawei.com
State New
Headers show

Commit Message

Claudio Fontana May 13, 2013, 1:28 p.m. UTC
support compiling on aarch64.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Peter Maydell May 13, 2013, 6:29 p.m. UTC | #1
On 13 May 2013 14:28, Claudio Fontana <claudio.fontana@huawei.com> wrote:
>
> support compiling on aarch64.
>
> Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>

This looks good, but it should be the last patch in the series,
so we don't allow the support to be enabled until the code
that implements it is present.

thanks
-- PMM
Claudio Fontana May 14, 2013, 8:19 a.m. UTC | #2
On 13.05.2013 20:29, Peter Maydell wrote:
> On 13 May 2013 14:28, Claudio Fontana <claudio.fontana@huawei.com> wrote:
>>
>> support compiling on aarch64.
>>
>> Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
> 
> This looks good, but it should be the last patch in the series,
> so we don't allow the support to be enabled until the code
> that implements it is present.
> 
> thanks
> -- PMM

Of course, that would break bisection. Will fix by putting last.
diff mbox

Patch

diff --git a/configure b/configure
index 9439f1c..9cc398c 100755
--- a/configure
+++ b/configure
@@ -384,6 +384,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
@@ -406,6 +408,9 @@  case "$cpu" in
   armv*b|armv*l|arm)
     cpu="arm"
   ;;
+  aarch64)
+    cpu="aarch64"
+  ;;
   hppa|parisc|parisc64)
     cpu="hppa"
   ;;
@@ -4114,6 +4119,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"