wizard: use a deterministic order for files in the Makefiles
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2011 05:15:13 +0000 (05:15 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2011 05:15:13 +0000 (05:15 +0000)
Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4855 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 522e651e2c4359d02f3c35ce752b0822acba666e..feb5c987fb33ad3fc736ce96689bb4c621fa6eea 100644 (file)
@@ -273,15 +273,15 @@ def csrcGenerator(project_info):
         cxxsrc.append(file)
     for file in project_info.info("CPU_INFOS")["ASRC"]:
         asrc.append(file)
-    csrc = set(csrc)
+    csrc = sorted(set(csrc))
     csrc = " \\\n\t".join(csrc) + " \\"
-    pcsrc = set(pcsrc)
+    pcsrc = sorted(set(pcsrc))
     pcsrc = " \\\n\t".join(pcsrc) + " \\"
-    cppasrc = set(cppasrc)
+    cppasrc = sorted(set(cppasrc))
     cppasrc = " \\\n\t".join(cppasrc) + " \\"
-    cxxsrc = set(cxxsrc)
+    cxxsrc = sorted(set(cxxsrc))
     cxxsrc = " \\\n\t".join(cxxsrc) + " \\"
-    asrc = set(asrc)
+    asrc = sorted(set(asrc))
     asrc = " \\\n\t".join(asrc) + " \\"
     constants = "\n".join([project_info.info("PROJECT_NAME") + "_" + key + " = " + unicode(value) for key, value in constants.items()])
     return csrc, pcsrc, cppasrc, cxxsrc, asrc, constants