Parse the filename for find the cpu name
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 10:10:22 +0000 (10:10 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 10:10:22 +0000 (10:10 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2099 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BCpuPage.py
wizard/bertos_utils.py

index 3a526f9ca16bfa22c6430cbff81a617350c8a4db..501a5a209d91415df83a4ec524373bc1fbb8e902 100644 (file)
@@ -22,7 +22,7 @@ class BCpuPage(BWizardPage):
     def _populateCpuList(self):
         infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH"))
         for cpu in infos:
-            self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CORE_CPU"]))
+            self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CPU_NAME"]))
     
     def reloadData(self):
         self._populateCpuList()
index b927ec48e1e46906c77b730a0f2e7f5fafef638d..0f0dc709bcd5e4041509fedd0a7d8a258479769b 100644 (file)
@@ -38,5 +38,6 @@ def loadCpuInfos(path):
             execfile(directory + "/" + filename, {}, D)
         D["include"] = include
         include(definition[0], D)
+        D["CPU_NAME"] = definition[0].split(".")[0]
         cpuInfos.append(D)
     return cpuInfos