Correct the bug related to the duplicate inclusion in makefile generation
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 09:56:01 +0000 (09:56 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 09:56:01 +0000 (09:56 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2436 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 4a17beb91eb209ab914dab8e96356b4a395adb11..ceb82c718eac5fa1887fd0b96438a1c9d8973b08 100644 (file)
@@ -121,11 +121,11 @@ def csrcGenerator(project_info):
     pcsrc = []
     ## constants to be included at the beginning of the makefile
     constants = {}
-    module_files = set([])
-    dependency_files = set([])
-    ## assembly sources
-    asm_files = set([])
     for module, information in modules.items():
+        module_files = set([])
+        dependency_files = set([])
+        ## assembly sources
+        asm_files = set([])
         if information["enabled"]:
             if "constants" in information:
                 constants.update(information["constants"])