diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-11 09:14:05 -0700 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-23 11:11:20 +0800 |
commit | 656d2539be34ea0ce356857ffd4f9decdf0476b2 (patch) | |
tree | d23ecf3f2009b6c496b2bd5ac4f38a97bb6592b5 /BaseTools/Source/Python/Common/VpdInfoFile.py | |
parent | b491aa95ab9e2e831f658bb74bf9ed67bff082ac (diff) | |
download | edk2-656d2539be34ea0ce356857ffd4f9decdf0476b2.tar.gz edk2-656d2539be34ea0ce356857ffd4f9decdf0476b2.tar.bz2 edk2-656d2539be34ea0ce356857ffd4f9decdf0476b2.zip |
BaseTools: replace 'UINT8','UINT16','UINT32','UINT64','VOID*' with shared constants.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/VpdInfoFile.py')
-rw-r--r-- | BaseTools/Source/Python/Common/VpdInfoFile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Common/VpdInfoFile.py b/BaseTools/Source/Python/Common/VpdInfoFile.py index b2ad5235bb..155693740f 100644 --- a/BaseTools/Source/Python/Common/VpdInfoFile.py +++ b/BaseTools/Source/Python/Common/VpdInfoFile.py @@ -94,11 +94,11 @@ class VpdInfoFile: if not (Offset >= 0 or Offset == "*"):
EdkLogger.error("VpdInfoFile", BuildToolError.PARAMETER_INVALID, "Invalid offset parameter: %s." % Offset)
- if Vpd.DatumType == "VOID*":
+ if Vpd.DatumType == TAB_VOID:
if Vpd.MaxDatumSize <= 0:
EdkLogger.error("VpdInfoFile", BuildToolError.PARAMETER_INVALID,
"Invalid max datum size for VPD PCD %s.%s" % (Vpd.TokenSpaceGuidCName, Vpd.TokenCName))
- elif Vpd.DatumType in ["BOOLEAN", "UINT8", "UINT16", "UINT32", "UINT64"]:
+ elif Vpd.DatumType in TAB_PCD_NUMERIC_TYPES:
if Vpd.MaxDatumSize is None or Vpd.MaxDatumSize == "":
Vpd.MaxDatumSize = MAX_SIZE_TYPE[Vpd.DatumType]
else:
|