Add the cpus in the cpu list
[bertos.git] / wizard / BCpuPage.py
index 97479027a1bbb6af62ce720f865c9d3c580fcbfb..3a526f9ca16bfa22c6430cbff81a617350c8a4db 100644 (file)
@@ -18,10 +18,12 @@ class BCpuPage(BWizardPage):
     def __init__(self):
         BWizardPage.__init__(self, "cpu_select.ui")
         self.setTitle(self.tr("Select the CPU"))
-        #self._populateCpuList()
     
     def _populateCpuList(self):
-        cpus = bertos_utils.findDefinitions("cdef", self._projectInfoRetrieve("SOURCES_PATH"))
-        for cpu in cpus.keys():
-            self.pageContent.cpuList.addItem(QListWidgetItem(cpu))
+        infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH"))
+        for cpu in infos:
+            self.pageContent.cpuList.addItem(QListWidgetItem(cpu["CORE_CPU"]))
+    
+    def reloadData(self):
+        self._populateCpuList()
         
\ No newline at end of file