From 050f38981e843bd0d164ef95dea969e94a51e713 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 23 Feb 2009 19:09:08 +0000 Subject: [PATCH] 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 --- wizard/bertos_utils.py | 2 ++ 1 file changed, 2 insertions(+) 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]) -- 2.25.1