Fix bug related to conditional-dependency files.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 22 Jan 2010 15:23:32 +0000 (15:23 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 22 Jan 2010 15:23:32 +0000 (15:23 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3164 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index ce526f013b5ed1f6f4ae6517ea88590f9301391b..004e67bf5512b53e1d55eaae7f32f250aa058c05 100644 (file)
@@ -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)