mirror of https://github.com/acidanthera/audk.git
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 <mingyuex.liang@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
This commit is contained in:
parent
dd5c7e3c52
commit
aec99d9bc3
|
@ -103,7 +103,7 @@ ${END}
|
||||||
if os.path.normpath(dependency_file +".deps") == abspath:
|
if os.path.normpath(dependency_file +".deps") == abspath:
|
||||||
continue
|
continue
|
||||||
filename = os.path.basename(dependency_file).strip()
|
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())
|
includes.add(dependency_file.strip())
|
||||||
|
|
||||||
for item in lines[1:]:
|
for item in lines[1:]:
|
||||||
|
@ -116,8 +116,6 @@ ${END}
|
||||||
if os.path.normpath(dependency_file +".deps") == abspath:
|
if os.path.normpath(dependency_file +".deps") == abspath:
|
||||||
continue
|
continue
|
||||||
filename = os.path.basename(dependency_file).strip()
|
filename = os.path.basename(dependency_file).strip()
|
||||||
if filename in self.SourceFileList:
|
|
||||||
continue
|
|
||||||
if filename in targetname:
|
if filename in targetname:
|
||||||
continue
|
continue
|
||||||
includes.add(dependency_file.strip())
|
includes.add(dependency_file.strip())
|
||||||
|
|
Loading…
Reference in New Issue