]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Allow empty value for HiiPcd in Dsc
authorFeng, Bob C <bob.c.feng@intel.com>
Wed, 16 Jan 2019 11:12:00 +0000 (19:12 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Fri, 18 Jan 2019 02:20:01 +0000 (10:20 +0800)
commitcce9d763580a955d294a5e3696cbe07a03965e2b
treee678859c4fb2c5df395a6410aceca2ea689dec7f
parentc68b5649002c2c75633cdf8a949803cacbe8d044
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>
BaseTools/Source/Python/Common/Misc.py