mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix bugs use special character in the --pcd option
Cases: --pcd Token.Name="!" --pcd Token.Name="\'W&\'" --pcd Token.Name="2*h" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
03c36c36a3
commit
0fab42ba27
|
@ -1132,6 +1132,8 @@ class DscBuildData(PlatformBuildClassObject):
|
||||||
if not FieldName:
|
if not FieldName:
|
||||||
if PcdDatumType not in TAB_PCD_NUMERIC_TYPES:
|
if PcdDatumType not in TAB_PCD_NUMERIC_TYPES:
|
||||||
PcdValue = '"' + PcdValue + '"'
|
PcdValue = '"' + PcdValue + '"'
|
||||||
|
elif not PcdValue.isdigit() and not PcdValue.upper().startswith('0X'):
|
||||||
|
PcdValue = '"' + PcdValue + '"'
|
||||||
else:
|
else:
|
||||||
IsArray = False
|
IsArray = False
|
||||||
Base = 10
|
Base = 10
|
||||||
|
|
Loading…
Reference in New Issue