]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Sort file list in Makefile
authorFeng, Bob C <bob.c.feng@intel.com>
Mon, 15 Jul 2019 14:42:45 +0000 (22:42 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Thu, 25 Jul 2019 01:00:59 +0000 (09:00 +0800)
This patch is going to sort the file list in generated
Makefile. This change make the autogen makefile easy to
compare.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
BaseTools/Source/Python/AutoGen/GenMake.py

index 10e67f7dbb16cc650247b5753b0b03358012c0fd..5802ae5ae485876509d48fd08c6c5b9a1d16a251 100644 (file)
@@ -1026,7 +1026,8 @@ cleanlib:
                         self.FileListMacros[T.FileListMacro].append(NewFile)\r
                     else:\r
                         Deps.append(NewFile)\r
-\r
+                for key in self.FileListMacros:\r
+                    self.FileListMacros[key].sort()\r
                 # Use file list macro as dependency\r
                 if T.GenFileListMacro:\r
                     Deps.append("$(%s)" % T.FileListMacro)\r