mirror of https://github.com/acidanthera/audk.git
BaseTools: Allow empty value for HiiPcd in Dsc
https://bugzilla.tianocore.org/show_bug.cgi?id=1466 DEC file defines PCD default value and PCD supported type. DSC can configure PCD type and value. If the value is same to default value in DEC file, DSC can only configure PCD type and leave empty for value. This usage supports all type PCD except for DynamicHii type. So, DynamicHii PCD should support this usage. Below is one example in DSC. for example, [PcdsDynamicHii.common.DEFAULT] PcdPkgTokenSpaceGuid.PcdCName|L"VarName"|gVarGuid|0x00||NV,BS Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
c68b564900
commit
cce9d76358
|
@ -1525,8 +1525,6 @@ def AnalyzeDscPcd(Setting, PcdType, DataType=''):
|
|||
Offset = FieldList[2]
|
||||
if len(FieldList) > 3:
|
||||
Value = FieldList[3]
|
||||
if not Value:
|
||||
IsValid = False
|
||||
if len(FieldList) > 4:
|
||||
Attribute = FieldList[4]
|
||||
return [HiiString, Guid, Offset, Value, Attribute], IsValid, 3
|
||||
|
|
Loading…
Reference in New Issue