Skip to contentSkip to conversation

xen: arm: correct XEN_COMPILE_ARCH autodetection for arm64

PATCH Applied Ian Campbell 3 participants 3 messages Oct 22, 2013 – Oct 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: arm: correct XEN_COMPILE_ARCH autodetection for arm64

From: Ian Campbell <[email protected]>

At least on aarch64 openSUSE running with qemu-user-aarch64 "uname -m" reports "aarch64" and not "armv8" so include that in the seddery. There's no harm leaving the existing armv8 rune too so do so.

---
 Config.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Config.mk +2 -1
index 1879454..7f3d8c7 100644
@@ -24,7 +24,8 @@ coverage ?= n
 
 XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
                          -e s/i86pc/x86_32/ -e s/amd64/x86_64/ \
-                         -e s/armv7.*/arm32/ -e s/armv8.*/arm64/)
+                         -e s/armv7.*/arm32/ -e s/armv8.*/arm64/ \
+                         -e s/aarch64/arm64/)
 
 XEN_TARGET_ARCH     ?= $(XEN_COMPILE_ARCH)
 XEN_OS              ?= $(shell uname -s)
Signature · 1 line
1.8.4.rc3
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Ian Campbell

From: Ian Campbell <[email protected]>

At least on aarch64 openSUSE running with qemu-user-aarch64 "uname -m" reports "aarch64" and not "armv8" so include that in the seddery. There's no harm leaving the existing armv8 rune too so do so.

Quoted 19 lines
---
  Config.mk | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Config.mk +2 -1
index 1879454..7f3d8c7 100644
@@ -24,7 +24,8 @@ coverage ?= n
 
  XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
                           -e s/i86pc/x86_32/ -e s/amd64/x86_64/ \
-                         -e s/armv7.*/arm32/ -e s/armv8.*/arm64/)
+                         -e s/armv7.*/arm32/ -e s/armv8.*/arm64/ \
+                         -e s/aarch64/arm64/)
 
  XEN_TARGET_ARCH     ?= $(XEN_COMPILE_ARCH)
  XEN_OS              ?= $(shell uname -s)
Signature · 1 line
Julien Grall