Parse the filename for find the cpu name
[bertos.git] / wizard / bertos_utils.py
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