+def csrcGenerator(projectInfo):
+ modules = projectInfo.info("MODULES")
+ files = []
+ for module, information in modules.items():
+ if information["enabled"]:
+ for filename, path in findDefinitions(module + ".c", projectInfo):
+ files.append(path + "/" + filename)
+ for filename, path in findDefinitions(module + "_" + projectInfo.info("CPU_INFOS")["TOOLCHAIN"] + ".c", projectInfo):
+ files.append(path + "/" + filename)
+ for tag in projectInfo.info("CPU_INFOS")["CPU_TAGS"]:
+ for filename, path in findDefinitions(module + "_" + tag + ".c", projectInfo):
+ files.append(path + "/" + filename)
+ csrc = " \\\n\t".join(files)
+ return csrc
+