summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-03-15 19:40:18 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-03-18 15:01:07 +0800
commit316b43dee56837ed7d382e8de4a78d6bb9d14eb7 (patch)
treea63f9c47dd26b3b70e400df3fdd3bd0b70f7a00a /BaseTools/Source/Python
parent34d808add3dc23aaa37e1c9edb2fcc2b50118367 (diff)
downloadedk2-316b43dee56837ed7d382e8de4a78d6bb9d14eb7.tar.gz
edk2-316b43dee56837ed7d382e8de4a78d6bb9d14eb7.tar.bz2
edk2-316b43dee56837ed7d382e8de4a78d6bb9d14eb7.zip
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>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r--BaseTools/Source/Python/Common/Misc.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py
index 2086b4c69d..7d44fdcf8b 100644
--- a/BaseTools/Source/Python/Common/Misc.py
+++ b/BaseTools/Source/Python/Common/Misc.py
@@ -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: