From: duplo Date: Mon, 23 Feb 2009 19:09:08 +0000 (+0000) Subject: Add the prefix and the suffix for the selected toolchain X-Git-Tag: 2.1.0~302 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=050f38981e843bd0d164ef95dea969e94a51e713;p=bertos.git Add the prefix and the suffix for the selected toolchain git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2380 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index bc60860b..e6b30183 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -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])