aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-07-23 00:18:20 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-07-23 00:18:20 +0000
commit1b08d43d510060246ab104595005c643c3e3061d (patch)
tree0fa1b214e6e40be256121a1cf114e02e4e879553
parentgui.py: self for set_chapter() again (diff)
downloadanaconda-1b08d43d510060246ab104595005c643c3e3061d.tar.gz
anaconda-1b08d43d510060246ab104595005c643c3e3061d.tar.bz2
anaconda-1b08d43d510060246ab104595005c643c3e3061d.zip
iw/makeconf_gui.py: populate the -march combobox
-rw-r--r--iw/makeconf_gui.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/iw/makeconf_gui.py b/iw/makeconf_gui.py
index 1e51756..df6dc8e 100644
--- a/iw/makeconf_gui.py
+++ b/iw/makeconf_gui.py
@@ -44,6 +44,27 @@ class MakeconfWindow(InstallWindow):
return None
def getScreen(self, anaconda):
+ if os.env["ANACONDA_PRODUCTARCH"] == "x86":
+ marches = [
+ "prescott",
+ "pentium-m",
+ "athlon-4",
+ "athlon-xp",
+ "athlon-mp",
+ "athlon",
+ "athlon-tbird",
+ "pentium4",
+ "pentium3",
+ "pentium2",
+ "k6-2",
+ "k6-3",
+ "k6",
+ "i686",
+ "pentiumpro",
+ ]
+ if os.env["ANACONDA_PRODUCTARCH"] == "amd64":
+ marches = ["nocona", "k8", "opteron", "athlon64", "athlon-fx"]
+
self.anaconda = anaconda
self.intf = anaconda.intf
@@ -55,6 +76,9 @@ class MakeconfWindow(InstallWindow):
self.jobs = self.xml.get_widget("jobs")
self.load = self.xml.get_widget("load")
self.silent = self.xml.get_widget("silent")
+
+ for x in marches
+ self.march.append_text(x)
# TODO: Get a list of arches available for this installation.