[PATCH anaconda/master] Add initial support for ARM based systems. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
From: "d.marlin" <dmarlin@xxxxxxxxxx>
Signed-off-by: David A. Marlin <dmarlin@xxxxxxxxxx>
---
pyanaconda/iutil.py | 5 +++++
pyanaconda/platform.py | 11 +++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index 5c68e02..dd691dc 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -766,6 +766,9 @@ def isAlpha():
def isSparc():
return os.uname()[4].startswith('sparc')
+def isARM():
+ return os.uname()[4].startswith('arm')
+
def getArch():
if isX86(bits=32):
return 'i386'
@@ -779,6 +782,8 @@ def getArch():
return 'alpha'
elif isSparc():
return 'sparc'
+ elif isARM():
+ return 'arm'
else:
return os.uname()[4]
diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
index e5875e3..335ab5c 100644
--- a/pyanaconda/platform.py
+++ b/pyanaconda/platform.py
@@ -347,6 +347,15 @@ class Sparc(Platform):
start /= long(1024 / disk.device.sectorSize)
return start+1
+class ARM(Platform):
+ _bootloaderClass = bootloader.GRUB2
+ _boot_stage1_device_types = ["disk"]
+ _boot_mbr_description = N_("Master Boot Record")
+ _boot_descriptions = {"disk": _boot_mbr_description,
+ "partition": Platform._boot_partition_description}
+
+ _disklabel_types = ["msdos"]
+
def getPlatform(anaconda):
"""Check the architecture of the system and return an instance of a
Platform subclass to match. If the architecture could not be determined,
@@ -373,5 +382,7 @@ def getPlatform(anaconda):
return EFI(anaconda)
elif iutil.isX86():
return X86(anaconda)
+ elif iutil.isARM():
+ return ARM(anaconda)
else:
raise SystemError, "Could not determine system architecture."
--
1.7.6.5
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
[Home] [Fedora Users] [Fedora Legacy List] [Fedora Maintainers] [Fedora Desktop] [Red Hat 9 Bible] [Fedora Bible] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools]