diff options
author | Liming Gao <liming.gao@intel.com> | 2017-12-26 15:59:09 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-12-27 10:29:46 +0800 |
commit | e4ff28c3ac72f946686e715bc32490b35c08ad5b (patch) | |
tree | e2c1ad212210e88a85038f442d157a21ee3f3b6f /BaseTools/Source/Python | |
parent | 4a75acbed352c43dbb01d32d4d0afcb28eb128e3 (diff) | |
download | edk2-e4ff28c3ac72f946686e715bc32490b35c08ad5b.tar.gz edk2-e4ff28c3ac72f946686e715bc32490b35c08ad5b.tar.bz2 edk2-e4ff28c3ac72f946686e715bc32490b35c08ad5b.zip |
BaseTools: Update SkuId checker to make sure it be valid UINT64 value
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 0374be0631..f44000829a 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -2149,10 +2149,10 @@ class SkuClass(): for SkuName in SkuIds:
SkuId = SkuIds[SkuName][0]
skuid_num = int(SkuId,16) if SkuId.upper().startswith("0X") else int(SkuId)
- if skuid_num > 0xFFFF:
+ if skuid_num > 0xFFFFFFFFFFFFFFFF:
EdkLogger.error("build", PARAMETER_INVALID,
- ExtraData = "SKU-ID [%s] must less than 65535"
- % (SkuName))
+ ExtraData = "SKU-ID [%s] value %s exceeds the max value of UINT64"
+ % (SkuName, SkuId))
self.AvailableSkuIds = sdict()
self.SkuIdSet = []
|