mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
BaseTools: fix an incremental build issue.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2137 This patch is going to fix a regression issue of incremental build which was introduced by the commit 94459080c. The changing on INF file will not trigger module rebuild. Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Steven Shi <steven.shi@intel.com> Tested-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
30b4abc6e9
commit
df43ea6c08
@ -1766,12 +1766,8 @@ class ModuleAutoGen(AutoGen):
|
||||
|
||||
if os.path.exists (self.TimeStampPath):
|
||||
os.remove (self.TimeStampPath)
|
||||
with tempfile.NamedTemporaryFile('w+', dir=os.path.dirname(self.TimeStampPath), delete=False) as tf:
|
||||
for f in FileSet:
|
||||
tf.write(f)
|
||||
tf.write("\n")
|
||||
tempname = tf.name
|
||||
SaveFileOnChange(self.TimeStampPath, tempname, False)
|
||||
|
||||
SaveFileOnChange(self.TimeStampPath, "\n".join(FileSet), False)
|
||||
|
||||
# Ignore generating makefile when it is a binary module
|
||||
if self.IsBinaryModule:
|
||||
|
Loading…
x
Reference in New Issue
Block a user