summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/Misc.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2018-01-31 16:49:14 +0800
committerLiming Gao <liming.gao@intel.com>2018-02-01 09:21:47 +0800
commit6f49996cedfb198beb374ea0cb89a06a71ef960c (patch)
treecebcdee6a3a775494d658bc0330141994c2d3bb5 /BaseTools/Source/Python/Common/Misc.py
parent81add864f4af238a2dfb702904a6abec12738b9d (diff)
downloadedk2-6f49996cedfb198beb374ea0cb89a06a71ef960c.tar.gz
edk2-6f49996cedfb198beb374ea0cb89a06a71ef960c.tar.bz2
edk2-6f49996cedfb198beb374ea0cb89a06a71ef960c.zip
BaseTools: Structure Pcd in CommandLine.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/Misc.py')
-rw-r--r--BaseTools/Source/Python/Common/Misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py
index ef52154f47..b34cb4c3be 100644
--- a/BaseTools/Source/Python/Common/Misc.py
+++ b/BaseTools/Source/Python/Common/Misc.py
@@ -2348,7 +2348,7 @@ def PackRegistryFormatGuid(Guid):
)
def BuildOptionPcdValueFormat(TokenSpaceGuidCName, TokenCName, PcdDatumType, Value):
- if PcdDatumType == 'VOID*':
+ if PcdDatumType not in [TAB_UINT8, TAB_UINT16, TAB_UINT32, TAB_UINT64,'BOOLEAN']:
if Value.startswith('L'):
if not Value[1]:
EdkLogger.error("build", FORMAT_INVALID, 'For Void* type PCD, when specify the Value in the command line, please use the following format: "string", L"string", H"{...}"')