[PATCH] support ppc64le in anaconda redux

Mark Hamzy hamzy at us.ibm.com
Wed Apr 2 19:35:58 UTC 2014


Add support for the ppc64le architecture in anaconda.
Tips for adding a new architecture:
1) Search for instances of getArch()
2) Search for instances of s_arch
3) Search for instances of uname

---
 anaconda.spec.in            | 6 +++---
 configure.ac                | 2 +-
 pyanaconda/isys/__init__.py | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/anaconda.spec.in b/anaconda.spec.in
index bb0db85..f6b3335 100755
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -1,4 +1,4 @@
-%define livearches %{ix86} x86_64 ppc ppc64
+%define livearches %{ix86} x86_64 ppc ppc64 ppc64le
 
 Summary: Graphical system installer
 Name:    anaconda
@@ -230,9 +230,9 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
 
 %ifarch %livearches
 desktop-file-install ---dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/liveinst.desktop
-%else
-%{__rm} -rf %{buildroot}%{_bindir}/liveinst %{buildroot}%{_sbindir}/liveinst
 %endif
+# NOTE: If you see "error: Installed (but unpackaged) file(s) found" that include liveinst files,
+#       check the IS_LIVEINST_ARCH in configure.ac to make sure your architecture is properly defined
 
 %find_lang %{name}
 
diff --git a/configure.ac b/configure.ac
index 5260fc8..90bef51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,7 +171,7 @@ AC_CANONICAL_BUILD
 s_arch="`echo $build_cpu | sed -e s/i.86/i386/ -e s/powerpc.*/ppc/`"
 
 AM_CONDITIONAL(IS_LIVEINST_ARCH,
-  [test x$s_arch = xppc || test x$s_arch = xi386 || test x$s_arch = xx86_64])
+  [test x$s_arch = xppc || test x$s_arch = xppc64 || test x$s_arch = xppc64le || test x$s_arch = xi386 || test x$s_arch = xx86_64])
 
 AC_CONFIG_SUBDIRS([widgets])
 
diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py
index c216428..c985b3e 100644
--- a/pyanaconda/isys/__init__.py
+++ b/pyanaconda/isys/__init__.py
@@ -45,7 +45,7 @@ import datetime
 import logging
 log = logging.getLogger("anaconda")
 
-if blivet.arch.getArch() in ("ppc64"):
+if blivet.arch.getArch() in ["ppc64", "ppc64le"]:
     MIN_RAM = 768 * 1024
     GUI_INSTALL_EXTRA_RAM = 512 * 1024
 else:
-- 
1.9.0



More information about the anaconda-patches mailing list