diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-14 06:30:37 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-14 06:30:37 +0000 |
commit | a72526804846e44773174a7b4800168e889d831a (patch) | |
tree | 507ba239c8cf71c4060a6b488d975c2ab819de48 /BaseTools/Source/Python/Common | |
parent | 5b7183efb1e24f3d32f97c9a619ae69f61f4c0a1 (diff) | |
download | edk2-platforms-a72526804846e44773174a7b4800168e889d831a.tar.xz |
Sync EDKII BaseTools to BaseTools project r2068.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10937 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 311749285f..e2dc5a5e52 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1172,14 +1172,15 @@ def ParseConsoleLog(Filename): # def CheckPcdDatum(Type, Value): if Type == "VOID*": - if not ((Value.startswith('L"') or Value.startswith('"') and Value.endswith('"')) + if not (((Value.startswith('L"') or Value.startswith('"')) and Value.endswith('"')) or (Value.startswith('{') and Value.endswith('}')) ): return False, "Invalid value [%s] of type [%s]; must be in the form of {...} for array"\ ", or \"...\" for string, or L\"...\" for unicode string" % (Value, Type) elif Type == 'BOOLEAN': - if Value not in ['TRUE', 'FALSE']: - return False, "Invalid value [%s] of type [%s]; must be TRUE or FALSE" % (Value, Type) + if Value not in ['TRUE', 'True', 'true', '0x1', '0x01', '1', 'FALSE', 'False', 'false', '0x0', '0x00', '0']: + return False, "Invalid value [%s] of type [%s]; must be one of TRUE, True, true, 0x1, 0x01, 1"\ + ", FALSE, False, false, 0x0, 0x00, 0" % (Value, Type) elif type(Value) == type(""): try: Value = long(Value, 0) |