mk_data["$prefix"] = replaceSeparators(project_info.info("TOOLCHAIN")["path"].split("gcc")[0])
mk_data["$suffix"] = replaceSeparators(project_info.info("TOOLCHAIN")["path"].split("gcc")[1])
mk_data["$main"] = os.path.basename(project_info.info("PROJECT_PATH")) + "/main.c"
+ mk_data["$programmercpu"] = project_info.info("CPU_INFOS")["PROGRAMMER_CPU"]
+ mk_data["$flashscript"] = project_info.info("CPU_INFOS")["FLASH_SCRIPT"]
+ mk_data["$debugscript"] = project_info.info("CPU_INFOS")["DEBUG_SCRIPT"]
for key in mk_data:
while makefile.find(key) != -1:
makefile = makefile.replace(key, mk_data[key])
"SUPPORTED_DRV" : [],
"PC_SRC" : [],
"CPU_DESC" : [],
- "CPU_DEFAULT_FREQ": "1000000"
+ "CPU_DEFAULT_FREQ": "1000000",
+ "PROGRAMMER_CPU": "",
+ "FLASH_SCRIPT": "",
+ "DEBUG_SCRIPT": "",
}
TOOLCHAIN_ITEMS = ("ld", "as")
"module_harvard": "module_harvard",
"module_hw": "module_hw",
"module_supports": "module_supports",
-}
\ No newline at end of file
+}
$pname_CXXFLAGS = $cxxflags
$pname_ASFLAGS = $asflags
$pname_ARFLAGS = $arflags
+
+$pname_PROGRAMMER_CPU = $programmercpu
+$pname_FLASH_SCRIPT = $flashscript
+$pname_DEBUG_SCRIPT = $debugscript