Liming
Why halt on finding the DEC statement? Why not wait to see how the PCD is used
in the build? As long as it is only used one way in a given build, why does
the other option matter at all?
-Jaben
From: Gao, Liming [mailto:liming....@intel.com]
Sent: Wednesday, October 08, 2014 7:28 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] DynamicEx and FeatureFlag
Tim:
Now, PcdsFeatureFlag can't be extended to other PCD type, like DynamicEx. You
have meet with this issue.
To use it as DynamicEx, one solution is to change its type from
PcdsFeatureFlag to FixedAtBuild, DynamicEx in Package DEC file. This change is
incompatible and impact Platform DSC file. Another solution is to introduce new
PCD for DynamicEx purpose.
Thanks
Liming
From: Tim Lewis [mailto:tim.le...@insyde.com]
Sent: Thursday, October 09, 2014 12:10 AM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] DynamicEx and FeatureFlag
Liming -
I don't understand. DynamicEx supports BOOLEAN also. Why is it incompatible? It
seems like a backward-compatible extension to the existing design. And, as
mentioned, the restriction that is not useful.
Having two PCDs that have the exact same meaning just adds a DynamicEx PCD
that, most of the time, will never be used, but will still be in the PCD
database. 90% of the time, this PCD would be FeatureFlag. That means that 90%
of the time I would have an unused DynamicEx PCD in the PCD database.
Tim
Tim
From: Gao, Liming [mailto:liming....@intel.com]
Sent: Wednesday, October 08, 2014 2:21 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] DynamicEx and FeatureFlag
Tim:
In current design, PcdsFeatureFlag is BOOLEAN FixedAtBuild PCD. It can't be
extended to other PCD type. To use it as PcdDynamicEx, its type has to be
changed. But, this change is incompatible. To avoid its impact, could you
introduce new PCD for PcdDynamicEx usage?
Thanks
Liming
From: Tim Lewis [mailto:tim.le...@insyde.com]
Sent: Wednesday, October 01, 2014 2:23 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] DynamicEx and FeatureFlag
Currently the flag PcdDxeIplSwitchToLongMode is declared as storage type
PcdFeatureFlag.
But we tried to change it to DynamicEx. Ok, that works great. We changed the
.dec file to say [PcdDynamicEx]. No problem.
But then we tried to make it selectable by .dsc by making it [PcdFeatureFlag,
PcdDynamicEx] in the .dec file.
Then we get this error:
"PcdsFeatureFlag must not be in the same section of other types of PCD"
While I understand that there are cases where feature-flag PCDs must be
resolved during the build process, this is not always the case and I would
rather I get the error when I try to use the non-feature-flag PCD in the wrong
place. Do I really have to change this to PcdFixedAtBuild?
Tim
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel