From: "Andrew Fish" <afish@apple.com>
To: Mike Kinney <michael.d.kinney@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [edk2-devel] PcdDebugPropertyMask in DSC: How to I set different values for PEI and DXE?
Date: Thu, 17 Feb 2022 12:22:12 -0800 [thread overview]
Message-ID: <01D26FB2-A387-41E7-8B95-DC9230E792F3@apple.com> (raw)
In-Reply-To: <CO1PR11MB4929DF4275A5032ABF296571D2369@CO1PR11MB4929.namprd11.prod.outlook.com>
> On Feb 17, 2022, at 10:52 AM, Kinney, Michael D <michael.d.kinney@intel.com> wrote:
>
> I agree that your approach is the only way right now.
>
> Do you have a feature request???
Well it does seem like a reasonable thing to be able to do? What do other people think?
I was able to refactor my code and I did not actually end up needing to override every PEIM and the PEI Core.
Thanks,
Andrew Fish
>
> Mike
>
>> -----Original Message-----
>> From: Andrew Fish <afish@apple.com>
>> Sent: Wednesday, February 16, 2022 7:26 PM
>> To: Kinney, Michael D <michael.d.kinney@intel.com>
>> Cc: devel@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@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@edk2.groups.io <devel@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@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
>>>>
>>>>
>>>>
>>>
>
next prev parent reply other threads:[~2022-02-17 20:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 21:01 PcdDebugPropertyMask in DSC: How to I set different values for PEI and DXE? Andrew Fish
2022-02-16 22:10 ` [edk2-devel] " Michael D Kinney
2022-02-17 3:25 ` Andrew Fish
2022-02-17 18:52 ` Michael D Kinney
2022-02-17 20:22 ` Andrew Fish [this message]
2022-02-18 0:26 ` Oram, Isaac W
2022-02-18 0:41 ` Andrew Fish
2022-02-18 1:36 ` Michael D Kinney
2022-02-18 2:49 ` Andrew Fish
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=01D26FB2-A387-41E7-8B95-DC9230E792F3@apple.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