> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Leif Lindholm
> Sent: Saturday, June 1, 2019 12:44 AM
> To: [email protected]; Gao, Zhichao <[email protected]>
> Cc: Bret Barkelew <[email protected]>; Wang, Jian J
> <[email protected]>; Wu, Hao A <[email protected]>; Ni, Ray
> <[email protected]>; Zeng, Star <[email protected]>; Gao, Liming
> <[email protected]>; Sean Brogan <[email protected]>;
> Michael Turner <[email protected]>
> Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/CapsulePei: Optimize the
> CapsulePei
> 
> On Fri, May 31, 2019 at 01:46:14AM +0000, Gao, Zhichao wrote:
> > > So what modifications were made to the code on the way from the
> > > project Mu repository? That would be useful to mention in the commit
> message.
> >
> > I would add this info blow commit message(not in commit message). It
> > is helpful for review. But it may not be useful to add them in the
> > commit message.
> > On my opinion, the commit message should contain the summary and
> impact of the changes.
> 
> You are importing a file from a different repository, produced by a different
> company. As part of that import, you are claiming Intel copyright for 2019 for
> the code provided in the patch.
> 
> This means that you are making a legal claim to the intellectual property
> provided by the patch on behalf of Intel.
> Either:
> - you have modified the code compared to the original, at which
>   point the commit mesage *must* reflect this - it is no longer the
>   contribution that the original message describes.
>   For an example, see how Laszlo reflected his changes to 94e0dd1afe53.

Sorry. I can't understand the example. But maybe I got your point. I would 
update the commit message with the MU link and mention what changes I made. 
Then I would update the copyright of Intel. Is that the correct flow? 
By the way, I have done that in V2 but the link and change info didn't include 
to the commit message. I would put them into the commit message in next patch.

Thanks,
Zhichao

> - the Intel copyright addition is a mistake (and must be dropped).
> 
> Regards,
> 
> Leif
> 
> >
> > Thanks,
> > Zhichao
> >
> > >
> > > Regards,
> > >
> > > Leif
> > >
> > > > And I also make some minor changes on it.
> > > >
> > > > Thanks,
> > > > Zhichao
> > > >
> > > > > -----Original Message-----
> > > > > From: Leif Lindholm [mailto:[email protected]]
> > > > > Sent: Wednesday, May 29, 2019 7:12 PM
> > > > > To: [email protected]; Gao, Zhichao <[email protected]>
> > > > > Cc: Bret Barkelew <[email protected]>; Wang, Jian J
> > > > > <[email protected]>; Wu, Hao A <[email protected]>; Ni, Ray
> > > > > <[email protected]>; Zeng, Star <[email protected]>; Gao,
> > > > > Liming <[email protected]>; Sean Brogan
> > > > > <[email protected]>; Michael Turner
> > > > > <[email protected]>
> > > > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/CapsulePei:
> > > > > Optimize the CapsulePei
> > > > >
> > > > > On Wed, May 29, 2019 at 08:45:55AM +0800, Gao, Zhichao wrote:
> > > > > > From: Bret Barkelew <[email protected]>
> > > > >
> > > > > If this code is from Microsoft...
> > > > >
> > > > > >
> > > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1853
> > > > > >
> > > > > > Sperate the capsule check function from GetCapsuleDescriptors
> > > > > > and name it to AreCapsulesStaged.
> > > > > > Rename GetCapsuleDescriptors to GetScatterGatherHeadEntries.
> > > > > > And optimize its to remove the duplicated code.
> > > > > >
> > > > > > Cc: Jian J Wang <[email protected]>
> > > > > > Cc: Hao A Wu <[email protected]>
> > > > > > Cc: Ray Ni <[email protected]>
> > > > > > Cc: Star Zeng <[email protected]>
> > > > > > Cc: Liming Gao <[email protected]>
> > > > > > Cc: Sean Brogan <[email protected]>
> > > > > > Cc: Michael Turner <[email protected]>
> > > > > > Cc: Bret Barkelew <[email protected]>
> > > > > > Signed-off-by: Zhichao gao <[email protected]>
> > > > > > ---
> > > > > >  MdeModulePkg/Universal/CapsulePei/Capsule.h   |   3 +-
> > > > > >  .../Universal/CapsulePei/CapsulePei.inf       |   3 +-
> > > > > >  .../Universal/CapsulePei/UefiCapsule.c        | 357 
> > > > > > ++++++++++-------
> -
> > > > > >  3 files changed, 194 insertions(+), 169 deletions(-)
> > > > > >
> > > > > > diff --git a/MdeModulePkg/Universal/CapsulePei/Capsule.h
> > > > > > b/MdeModulePkg/Universal/CapsulePei/Capsule.h
> > > > > > index baf40423af..fc20dd8b92 100644
> > > > > > --- a/MdeModulePkg/Universal/CapsulePei/Capsule.h
> > > > > > +++ b/MdeModulePkg/Universal/CapsulePei/Capsule.h
> > > > > > @@ -1,6 +1,6 @@
> > > > > >  /** @file
> > > > > >
> > > > > > -Copyright (c) 2006 - 2018, Intel Corporation. All rights
> > > > > > reserved.<BR>
> > > > > > +Copyright (c) 2006 - 2019, Intel Corporation. All rights
> > > > > > +reserved.<BR>
> > > > > >
> > > > > >  SPDX-License-Identifier: BSD-2-Clause-Patent
> > > > > >
> > > > > > @@ -30,6 +30,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
> > > > > > #include <Library/PcdLib.h>  #include
> > > > > > <Library/ReportStatusCodeLib.h> #include
> > > > > > <Library/DebugAgentLib.h>
> > > > > > +#include <Library/MemoryAllocationLib.h>
> > > > > >  #include <IndustryStandard/PeImage.h>  #include
> > > > > > "Common/CommonHeader.h"
> > > > > >
> > > > > > diff --git a/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
> > > > > > b/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
> > > > > > index 5d43df3075..9c88b3986f 100644
> > > > > > --- a/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
> > > > > > +++ b/MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
> > > > > > @@ -6,7 +6,7 @@
> > > > > >  #  This external input must be validated carefully to avoid
> > > > > > security issue like  #  buffer overflow, integer overflow.
> > > > > >  #
> > > > > > -# Copyright (c) 2006 - 2018, Intel Corporation. All rights
> > > > > > reserved.<BR>
> > > > > > +# Copyright (c) 2006 - 2019, Intel Corporation. All rights
> > > > > > +reserved.<BR>
> > > > >
> > > > > ...why does Intel get the copyright?
> > > > >
> > > > > /
> > > > >     Leif
> > > >
> > > >
> > > >
> >
> >
> >
> 
> 


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

View/Reply Online (#41802): https://edk2.groups.io/g/devel/message/41802
Mute This Topic: https://groups.io/mt/31828852/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to