[edk2-devel] PcdDebugPropertyMask in DSC: How to I set different values for PEI and DXE?

Michael D Kinney michael.d.kinney at intel.com
Thu Feb 17 18:52:00 UTC 2022


I agree that your approach is the only way right now.

Do you have a feature request???

Mike

> -----Original Message-----
> From: Andrew Fish <afish at apple.com>
> Sent: Wednesday, February 16, 2022 7:26 PM
> To: Kinney, Michael D <michael.d.kinney at intel.com>
> Cc: devel at edk2.groups.io
> Subject: Re: [edk2-devel] PcdDebugPropertyMask in DSC: How to I set different values for PEI and DXE?
> 
> 
> 
> > On Feb 16, 2022, at 2:10 PM, Kinney, Michael D <michael.d.kinney at intel.com> wrote:
> >
> > Hi Andrew,
> >
> > Current DSC syntax for platform scoped [PcdsXXX] sections only supports
> > CPU Arch and SKUID.
> >
> > So there is no mechanism today to specify different PCD values based on
> > module type.
> >
> > You can manage this in the DSC file, but it does require the module
> > scoped <PcdXXX> section for each module INF that requires a different
> > value that the platform scoped [PcdXXX] section.
> >
> 
> Mike,
> 
> That is what I ended up doing, but it required overriding every PEIM and PEI Core. Seemed kind of excessive.
> 
> I think people cheat and use IA32 vs X64 to mean PEI vs. DXE on X64 platforms.
> 
> Thanks,
> 
> Andrew Fish
> 
> > Mike
> >
> >> -----Original Message-----
> >> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Andrew Fish via groups.io
> >> Sent: Wednesday, February 16, 2022 1:02 PM
> >> To: edk2-devel-groups-io <devel at edk2.groups.io>
> >> Subject: [edk2-devel] PcdDebugPropertyMask in DSC: How to I set different values for PEI and DXE?
> >>
> >> I’m trying to have a different platform policy for PcdDebugPropertyMask in PEI and DXE. I can’t figure out how to do without
> >> overriding every PEIM that I build?
> >>
> >> My PEI and DXE has the same arch so I can’t use the CPU Arch to tell them apart.
> >>
> >> Is there something I’m missing?
> >>
> >> Thanks,
> >>
> >> Andrew Fish
> >>
> >> 
> >>
> >



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86734): https://edk2.groups.io/g/devel/message/86734
Mute This Topic: https://groups.io/mt/89195478/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list