Add the prefix and the suffix for the selected toolchain
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 23 Feb 2009 19:09:08 +0000 (19:09 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 23 Feb 2009 19:09:08 +0000 (19:09 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2380 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index bc60860bae7063148b4dd97e6ca1681bccdc3c6b..e6b301831a3b03157fb1cce9a5ba0242fd05e3f5 100644 (file)
@@ -78,6 +78,8 @@ def mkGenerator(projectInfo, makefile):
     mkData["$cflags"] = " ".join(projectInfo.info("CPU_INFOS")["C_FLAGS"])
     mkData["$ldflags"] = " ".join(projectInfo.info("CPU_INFOS")["LD_FLAGS"])
     mkData["$csrc"] = csrcGenerator(projectInfo)
+    mkData["$prefix"] = os.path.basename(projectInfo.info("TOOLCHAIN")["path"]).split("gcc")[0]
+    mkData["$suffix"] = os.path.basename(projectInfo.info("TOOLCHAIN")["path"]).split("gcc")[1]
     for key in mkData:
         while makefile.find(key) != -1:
             makefile = makefile.replace(key, mkData[key])