self.pageContent.frequencySpinBox.setVisible(True)
infos = qvariant_converter.getDict(self.pageContent.cpuList.currentItem().data(Qt.UserRole))
for key, value in infos.items():
- if key in CPU_DEF:
- if type(CPU_DEF[key]) == list:
- infos[key] = qvariant_converter.getStringList(value)
- if type(CPU_DEF[key]) == str or type(CPU_DEF) == unicode:
- infos[key] = qvariant_converter.getString(value)
- else:
+ if key in CPU_DEF:
+ if type(CPU_DEF[key]) == list:
+ infos[key] = qvariant_converter.getStringList(value)
+ if type(CPU_DEF[key]) == str or type(CPU_DEF) == unicode:
+ infos[key] = qvariant_converter.getString(value)
+ elif key.startswith("MK_"):
+ pass
+ else:
del infos[key]
self.setProjectInfo("CPU_INFOS", infos)
self.setProjectInfo("CPU_NAME", unicode(self.pageContent.cpuList.currentItem().text()))
cpu_mk_parameters = []
for key, value in project_info.info("CPU_INFOS").items():
if key.startswith("MK_"):
- cpu_mk_parameters.append("%s = %s" %(key.replace("MK_", mk_data["$pname"]), value))
+ cpu_mk_parameters.append("%s = %s" %(key.replace("MK", mk_data["$pname"]), value))
+ print project_info.info("CPU_INFOS")
mk_data["$cpuparameters"] = "\n".join(cpu_mk_parameters)
mk_data["$csrc"], mk_data["$pcsrc"], mk_data["$cppasrc"], mk_data["$cxxsrc"], mk_data["$asrc"], mk_data["$constants"] = csrcGenerator(project_info)
mk_data["$prefix"] = replaceSeparators(project_info.info("TOOLCHAIN")["path"].split("gcc")[0])