public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: "S, Ashraf Ali" <ashraf.ali.s@intel.com>,
	"Feng, Bob C" <bob.c.feng@intel.com>,
	"Chan, Amy" <amy.chan@intel.com>,
	"Chen, Christine" <yuwei.chen@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Rebecca Cran <rebecca@bsdio.com>,
	"Gao, Liming" <gaoliming@byosoft.com.cn>,
	"Chaganty, Rangasai V" <rangasai.v.chaganty@intel.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [PATCH] BaseTools: Remove Duplicate sets of SkuName and SkuId from allskuset
Date: Thu, 8 Feb 2024 05:53:55 +0000	[thread overview]
Message-ID: <CO1PR11MB4929CB1E0FEC492E2A3866A8D2442@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <DM4PR11MB528047C5063125DC166C2CDED7442@DM4PR11MB5280.namprd11.prod.outlook.com>

I will merge it soon.

Please work with Christine to get edk2-basetools CI working correctly.

Mike

> -----Original Message-----
> From: S, Ashraf Ali <ashraf.ali.s@intel.com>
> Sent: Wednesday, February 7, 2024 9:50 PM
> To: Feng, Bob C <bob.c.feng@intel.com>; Chan, Amy <amy.chan@intel.com>;
> Chen, Christine <yuwei.chen@intel.com>; devel@edk2.groups.io
> Cc: Rebecca Cran <rebecca@bsdio.com>; Gao, Liming
> <gaoliming@byosoft.com.cn>; Chaganty, Rangasai V
> <rangasai.v.chaganty@intel.com>; Kinney, Michael D
> <michael.d.kinney@intel.com>
> Subject: RE: [PATCH] BaseTools: Remove Duplicate sets of SkuName and
> SkuId from allskuset
> 
> Hi
> 
> Is this patch merged!
> PR under base-tools repo : https://github.com/tianocore/edk2-
> basetools/pull/112
> 
> Builds are failing, looks like it's not due to these changes.
> 
> Thanks.,
> S, Ashraf Ali
> 
> -----Original Message-----
> From: Feng, Bob C <bob.c.feng@intel.com>
> Sent: Tuesday, January 30, 2024 1:19 PM
> To: Chan, Amy <amy.chan@intel.com>; Chen, Christine
> <yuwei.chen@intel.com>; S, Ashraf Ali <ashraf.ali.s@intel.com>;
> devel@edk2.groups.io
> Cc: Rebecca Cran <rebecca@bsdio.com>; Gao, Liming
> <gaoliming@byosoft.com.cn>; Chaganty, Rangasai V
> <rangasai.v.chaganty@intel.com>
> Subject: RE: [PATCH] BaseTools: Remove Duplicate sets of SkuName and
> SkuId from allskuset
> 
> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
> 
> -----Original Message-----
> From: Chan, Amy <amy.chan@intel.com>
> Sent: Monday, January 8, 2024 11:54 AM
> To: Chen, Christine <yuwei.chen@intel.com>; S, Ashraf Ali
> <ashraf.ali.s@intel.com>; devel@edk2.groups.io
> Cc: Rebecca Cran <rebecca@bsdio.com>; Gao, Liming
> <gaoliming@byosoft.com.cn>; Feng, Bob C <bob.c.feng@intel.com>;
> Chaganty, Rangasai V <rangasai.v.chaganty@intel.com>
> Subject: RE: [PATCH] BaseTools: Remove Duplicate sets of SkuName and
> SkuId from allskuset
> 
> Reviewed-by: Amy Chan <amy.chan@intel.com>
> 
> > -----Original Message-----
> > From: Chen, Christine <yuwei.chen@intel.com>
> > Sent: Monday, January 8, 2024 8:29 AM
> > To: S, Ashraf Ali <ashraf.ali.s@intel.com>; devel@edk2.groups.io
> > Cc: Rebecca Cran <rebecca@bsdio.com>; Gao, Liming
> > <gaoliming@byosoft.com.cn>; Feng, Bob C <bob.c.feng@intel.com>; Chan,
> > Amy <amy.chan@intel.com>; Chaganty, Rangasai V
> > <rangasai.v.chaganty@intel.com>
> > Subject: RE: [PATCH] BaseTools: Remove Duplicate sets of SkuName and
> > SkuId from allskuset
> >
> > Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
> >
> > > -----Original Message-----
> > > From: S, Ashraf Ali <ashraf.ali.s@intel.com>
> > > Sent: Monday, December 25, 2023 11:28 PM
> > > To: devel@edk2.groups.io
> > > Cc: S, Ashraf Ali <ashraf.ali.s@intel.com>; Chen, Christine
> > > <yuwei.chen@intel.com>; Rebecca Cran <rebecca@bsdio.com>; Gao,
> > Liming
> > > <gaoliming@byosoft.com.cn>; Feng, Bob C <bob.c.feng@intel.com>;
> > > Chan, Amy <amy.chan@intel.com>; Chaganty, Rangasai V
> > > <rangasai.v.chaganty@intel.com>
> > > Subject: [PATCH] BaseTools: Remove Duplicate sets of SkuName and
> > > SkuId from allskuset
> > >
> > > Currently when the platform has many SKUs then allskuset will be
> > > having so many duplicate. and while parsing the allskuset will take
> > > longer time while assing Pcd.SkuInfoList.
> > > This patch is to eliminate those duplicate entires to reduce the
> > > build time
> > >
> > > Cc: Yuwei Chen <yuwei.chen@intel.com>
> > > Cc: Rebecca Cran <rebecca@bsdio.com>
> > > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > > Cc: Bob Feng <bob.c.feng@intel.com>
> > > Cc: Amy Chan <amy.chan@intel.com>
> > > Cc: Sai Chaganty <rangasai.v.chaganty@intel.com>
> > > Signed-off-by: Ashraf Ali S <ashraf.ali.s@intel.com>
> > > ---
> > >  BaseTools/Source/Python/AutoGen/PlatformAutoGen.py | 2 ++
> > >  1 file changed, 2 insertions(+)
> > >
> > > diff --git a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
> > > b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
> > > index 592d4824a4..dac81454a9 100644
> > > --- a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
> > > +++ b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
> > > @@ -707,6 +707,8 @@ class PlatformAutoGen(AutoGen):
> > >          self._DynamicPcdList.extend(list(OtherPcdArray))
> > >          self._DynamicPcdList.sort()
> > >          allskuset = [(SkuName, Sku.SkuId) for pcd in
> > > self._DynamicPcdList for (SkuName, Sku) in pcd.SkuInfoList.items()]
> > > +        # Remove duplicate sets in the list
> > > +        allskuset = list(set(allskuset))
> > >          for pcd in self._DynamicPcdList:
> > >              if len(pcd.SkuInfoList) == 1:
> > >                  for (SkuName, SkuId) in allskuset:
> > > --
> > > 2.39.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#115265): https://edk2.groups.io/g/devel/message/115265
Mute This Topic: https://groups.io/mt/103360241/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-02-08  5:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-25 15:27 [edk2-devel] [PATCH] BaseTools: Remove Duplicate sets of SkuName and SkuId from allskuset Ashraf Ali S
2024-01-08  0:29 ` Yuwei Chen
2024-01-08  3:54   ` Chan, Amy
2024-01-30  7:48     ` Feng, Bob C
2024-02-08  5:49       ` Ashraf Ali S
2024-02-08  5:53         ` Michael D Kinney [this message]
2024-02-08  6:38           ` Yuwei Chen
2024-02-08 16:30             ` Michael D Kinney
2024-02-08 19:27               ` Michael D Kinney
2024-01-24  0:28   ` Michael D Kinney
2024-01-30  7:07     ` Ashraf Ali S

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CO1PR11MB4929CB1E0FEC492E2A3866A8D2442@CO1PR11MB4929.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox