From: duplo Date: Fri, 22 Jan 2010 15:23:32 +0000 (+0000) Subject: Fix bug related to conditional-dependency files. X-Git-Tag: 2.4.0~57 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fac664f755d77b3e601e027a05d373fd717d905d;p=bertos.git Fix bug related to conditional-dependency files. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3164 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index ce526f01..004e67bf 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -307,8 +307,7 @@ def csrcGenerator(project_info): for file in information["hw"]: if file.endswith(".c"): module_files |= set([hwdir + "/" + os.path.basename(file)]) - for file_dependency in information["depends"]: - if file_dependency in files: + for file_dependency in information["depends"] + tuple(files.keys()): dependencyCFiles, dependencySFiles = findModuleFiles(file_dependency, project_info) dependency_files |= set(dependencyCFiles) asm_files |= set(dependencySFiles)