Mike:
  I add notes in BZ. Current problem is that the change in INF file will not 
trig rebuild. For example:

1st build:
build -p MdeModulePkg\MdeModulePkg.dsc -a IA32 -m 
MdeModulePkg\Application\HelloWorld\HelloWorld.inf

2st build with below change 
update MdeModulePkg\Application\HelloWorld\HelloWorld.inf
and remove MdeModulePkg/MdeModulePkg.dec from [Packages] section

2st build should update Makefile and trig build. But now, there is no build 
trig. 

So, this is the critical incremental build issue.


Thanks
Liming
> -----Original Message-----
> From: Kinney, Michael D
> Sent: Wednesday, August 28, 2019 11:56 PM
> To: Gao, Liming <liming....@intel.com>; Feng, Bob C <bob.c.f...@intel.com>; 
> devel@edk2.groups.io; Kinney, Michael D
> <michael.d.kin...@intel.com>
> Cc: Shi, Steven <steven....@intel.com>; af...@apple.com; Laszlo Ersek 
> (ler...@redhat.com) <ler...@redhat.com>;
> leif.lindh...@linaro.org
> Subject: RE: [Patch][edk2-stable201908] BaseTools: fix an incremental build 
> issue.
> 
> Bob and Liming,
> 
> What is an example test case that fails?  Please add to BZ.
> 
> We need this information to test that this fix resolves the
> issue.
> 
> Mike
> 
> > -----Original Message-----
> > From: Gao, Liming
> > Sent: Wednesday, August 28, 2019 8:26 AM
> > To: Feng, Bob C <bob.c.f...@intel.com>;
> > devel@edk2.groups.io
> > Cc: Shi, Steven <steven....@intel.com>; Kinney, Michael D
> > <michael.d.kin...@intel.com>; af...@apple.com; Laszlo
> > Ersek (ler...@redhat.com) <ler...@redhat.com>;
> > leif.lindh...@linaro.org
> > Subject: RE: [Patch][edk2-stable201908] BaseTools: fix an
> > incremental build issue.
> >
> > Bob:
> >   This is the critical regression issue for the
> > incremental build. I request to catch it in this stable
> > tag 201908.
> >
> >   This patch corrects the behavior. Reviewed-by: Liming
> > Gao <liming....@intel.com>
> >
> > Thanks
> > Liming
> > > -----Original Message-----
> > > From: Feng, Bob C
> > > Sent: Wednesday, August 28, 2019 4:52 PM
> > > To: devel@edk2.groups.io
> > > Cc: Feng, Bob C <bob.c.f...@intel.com>; Gao, Liming
> > > <liming....@intel.com>; Shi, Steven
> > <steven....@intel.com>
> > > Subject: [Patch][edk2-stable201908] 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.f...@intel.com>
> > > Cc: Liming Gao <liming....@intel.com>
> > > Cc: Steven Shi <steven....@intel.com>
> > > ---
> > >  BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 8
> > ++------
> > >  1 file changed, 2 insertions(+), 6 deletions(-)
> > >
> > > diff --git
> > a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> > > b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> > > index 2cd0d3859e..f610365f6d 100755
> > > --- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> > > +++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> > > @@ -1764,16 +1764,12 @@ class ModuleAutoGen(AutoGen):
> > >              for f in self.AutoGenDepSet:
> > >                  FileSet.add (f.Path)
> > >
> > >              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:
> > >              return
> > >
> > > --
> > > 2.20.1.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#46547): https://edk2.groups.io/g/devel/message/46547
Mute This Topic: https://groups.io/mt/33055144/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to