mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
BaseTools: Fix bug for VOID* DynamicDefault Pcd use Flexible format
define a flexible pcd format in Dyanmic/DynamicExDefault section, it cause build error. [PcdsDynamicExDefault.common.DEFAULT] pcdToken.Name|{GUID("11111111-2222-42eb-b5eb-fef31d207cb4")} Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
34d808add3
commit
316b43dee5
@ -1720,14 +1720,6 @@ def AnalyzeDscPcd(Setting, PcdType, DataType=''):
|
||||
Type = DataType
|
||||
if len(FieldList) > 2:
|
||||
Size = FieldList[2]
|
||||
else:
|
||||
if Type == 'VOID*':
|
||||
if Value.startswith("L"):
|
||||
Size = str((len(Value)- 3 + 1) * 2)
|
||||
elif Value.startswith("{"):
|
||||
Size = str(len(Value.split(",")))
|
||||
else:
|
||||
Size = str(len(Value) -2 + 1 )
|
||||
if DataType == "":
|
||||
IsValid = (len(FieldList) <= 1)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user