qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH Risu v2 7/9] Add PPC64 in risu build system


From: Jose Ricardo Ziviani
Subject: [Qemu-devel] [PATCH Risu v2 7/9] Add PPC64 in risu build system
Date: Sun, 6 Nov 2016 15:15:26 -0200

Recognizes PPC64 as a valid architecture and setup the environment
variables to compile code for that.

Signed-off-by: Jose Ricardo Ziviani <address@hidden>
---
 configure | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 748b48a..f81bdb5 100755
--- a/configure
+++ b/configure
@@ -22,6 +22,12 @@ guess_arch() {
         ARCH="arm"
     elif check_define __aarch64__ ; then
         ARCH="aarch64"
+    elif check_define __powerpc64__ ; then
+        if check_define __BIG_ENDIAN__; then
+            ARCH="ppc64"
+        else
+            ARCH="ppc64le"
+        fi
     else
         echo "This cpu is not supported by risu. Try -h. " >&2
         exit 1
@@ -57,7 +63,7 @@ Some influential environment variables:
                prefixed with the given string.
 
   ARCH         force target architecture instead of trying to detect it.
-               Valid values=[arm|aarch64]
+               Valid values=[arm|aarch64|ppc64|ppc64le]
 
   CC           C compiler command
   CFLAGS       C compiler flags
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]