[PATCH] add initial spport for aarch64 as we only plan to support UEFI this should be enough

Dennis Gilmore dennis at ausil.us
Sun Oct 20 17:00:30 UTC 2013


Signed-off-by: Dennis Gilmore <dennis at ausil.us>
---
 blivet/arch.py     | 10 ++++++++++
 blivet/platform.py |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/blivet/arch.py b/blivet/arch.py
index cbbf5e6..b16b3fc 100644
--- a/blivet/arch.py
+++ b/blivet/arch.py
@@ -162,6 +162,14 @@ def getPPCMacBook():
 
     return False
 
+def isAARCH64():
+    """
+    :return: True if the hardware supports Aarch64, False otherwise.
+    :rtype: boolean
+
+    """
+    return os.uname()[4] == 'aarch64'
+
 def getARMMachine():
     """
     :return: The ARM processor variety type, or None if not ARM.
@@ -325,6 +333,8 @@ def getArch():
         return 'ppc'
     elif isPPC(bits=64):
         return 'ppc64'
+    elif arch.isAARCH64():
+        return 'aarch64'
     elif isAlpha():
         return 'alpha'
     elif isARM():
diff --git a/blivet/platform.py b/blivet/platform.py
index 185d82e..f95aa22 100644
--- a/blivet/platform.py
+++ b/blivet/platform.py
@@ -381,6 +381,8 @@ def getPlatform():
             return EFI()
     elif arch.isX86():
         return X86()
+    elif arch.isAARCH64):
+        return EFI()
     elif arch.isARM():
         armMachine = arch.getARMMachine()
         if armMachine == "omap":
-- 
1.8.3.1



More information about the anaconda-patches mailing list