From aec99d9bc3f7459e457e3346b493e534ccbdee8a Mon Sep 17 00:00:00 2001 From: Mingyue Liang Date: Wed, 23 Sep 2020 18:52:26 +0800 Subject: BaseTools: Add included files to deps_target file. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2882 After changing the name of the include source file, when doing incremental build, the previous source file is not covered in the. DEPs file, and a build error occurs. The root cause is that the build tools filter out some dependency files, which are listed in inf source section, from the deps_target file. Add those files back to deps_target file to resolve the above problem. Signed-off-by: Mingyue Liang Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Reviewed-by: Bob Feng Reviewed-by: Yuwei Chen --- BaseTools/Source/Python/AutoGen/IncludesAutoGen.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'BaseTools/Source/Python/AutoGen') diff --git a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py index 720d933..c3e6333 100644 --- a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py @@ -103,7 +103,7 @@ ${END} if os.path.normpath(dependency_file +".deps") == abspath: continue filename = os.path.basename(dependency_file).strip() - if filename not in self.SourceFileList and filename not in targetname: + if filename not in targetname: includes.add(dependency_file.strip()) for item in lines[1:]: @@ -116,8 +116,6 @@ ${END} if os.path.normpath(dependency_file +".deps") == abspath: continue filename = os.path.basename(dependency_file).strip() - if filename in self.SourceFileList: - continue if filename in targetname: continue includes.add(dependency_file.strip()) -- cgit v1.1