X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos_utils.py;h=805519419374ac3274744f52ac522e77cd4137b5;hb=0a132dc62cfb3366acace64e0e8a525d04eb06bd;hp=1c8caaa74adde5ffb9d37c3f8dda7f1ca648b005;hpb=2cb518f1b99af32c5edecfeb058e27d62f344435;p=bertos.git diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 1c8caaa7..80551941 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -141,13 +141,13 @@ def csrcGenerator(project_info): asm_files |= set(dependencySFiles) for file in module_files: if not harvard or "harvard" not in information or information["harvard"] == "both": - csrc.append(file) + csrc.append(os.path.normpath(file)) if harvard and "harvard" in information: - pcsrc.append(file) + pcsrc.append(os.path.normpath(file)) for file in dependency_files: - csrc.append(file) + csrc.append(os.path.normpath(file)) for file in asm_files: - asrc.append(file) + asrc.append(os.path.normpath(file)) csrc = " \\\n\t".join(csrc) + " \\" pcsrc = " \\\n\t".join(pcsrc) + " \\" asrc = " \\\n\t".join(asrc) + " \\" @@ -398,6 +398,9 @@ def loadModuleData(project): except ParseError, err: raise DefineException.ModuleDefineException(path, err.line_number, err.line) for module, information in module_dict.items(): + if "depends" not in information: + information["depends"] = () + information["depends"] += (filename.split(".")[0],) information["category"] = os.path.basename(path) if "configuration" in information.keys() and len(information["configuration"]): configuration = module_dict[module]["configuration"]