From 959791dd6c98ff6511fe9e307ee4d468c6e9607d Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Mon, 15 Jul 2019 22:42:45 +0800 Subject: [PATCH] BaseTools: Sort file list in Makefile This patch is going to sort the file list in generated Makefile. This change make the autogen makefile easy to compare. Cc: Liming Gao Signed-off-by: Bob Feng Reviewed-by: Liming Gao Reviewed-by: Philippe Mathieu-Daude --- BaseTools/Source/Python/AutoGen/GenMake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py index 10e67f7dbb..5802ae5ae4 100644 --- a/BaseTools/Source/Python/AutoGen/GenMake.py +++ b/BaseTools/Source/Python/AutoGen/GenMake.py @@ -1026,7 +1026,8 @@ cleanlib: self.FileListMacros[T.FileListMacro].append(NewFile) else: Deps.append(NewFile) - + for key in self.FileListMacros: + self.FileListMacros[key].sort() # Use file list macro as dependency if T.GenFileListMacro: Deps.append("$(%s)" % T.FileListMacro)