Reviewed-by: Liming Gao <liming....@intel.com>

> -----Original Message-----
> From: Feng, Bob C
> Sent: Thursday, January 17, 2019 12:22 AM
> To: edk2-devel@lists.01.org
> Cc: Feng, Bob C <bob.c.f...@intel.com>; Gao, Liming <liming....@intel.com>; 
> Carsey, Jaben <jaben.car...@intel.com>
> Subject: [Patch] 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.f...@intel.com>
> Cc: Liming Gao <liming....@intel.com>
> Cc: Jaben Carsey <jaben.car...@intel.com>
> ---
>  BaseTools/Source/Python/Common/Misc.py | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/BaseTools/Source/Python/Common/Misc.py 
> b/BaseTools/Source/Python/Common/Misc.py
> index 76a73d1c33..feb2c7e394 100644
> --- a/BaseTools/Source/Python/Common/Misc.py
> +++ b/BaseTools/Source/Python/Common/Misc.py
> @@ -1523,12 +1523,10 @@ def AnalyzeDscPcd(Setting, PcdType, DataType=''):
>              Guid = FieldList[1]
>          if len(FieldList) > 2:
>              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
>      return [], False, 0
> 
> --
> 2.19.1.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to