diff options
author | Hess Chen <hesheng.chen@intel.com> | 2014-08-25 01:16:34 +0000 |
---|---|---|
committer | hchen30 <hchen30@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-25 01:16:34 +0000 |
commit | b3d07ff8d21ecab5a8060815e9abe73c904e3ed9 (patch) | |
tree | ecc756e5c8173a9d9aa82beb43fc526e19608066 /BaseTools/Source/Python/Ecc/Configuration.py | |
parent | f056e4c18047e9a0157a915175d07afbd8b8c581 (diff) | |
download | edk2-b3d07ff8d21ecab5a8060815e9abe73c904e3ed9.tar.gz edk2-b3d07ff8d21ecab5a8060815e9abe73c904e3ed9.tar.bz2 edk2-b3d07ff8d21ecab5a8060815e9abe73c904e3ed9.zip |
This patch is going to:
1. Add a checkpoint to check if an UNI file is a valid UTF-16 file
2. Add a checkpoint to check if a GUID/PPI/PROTOCOL/PCD is in a valid format.
3. Some other minor changes.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15886 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/Python/Ecc/Configuration.py')
-rw-r--r-- | BaseTools/Source/Python/Ecc/Configuration.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Ecc/Configuration.py b/BaseTools/Source/Python/Ecc/Configuration.py index 72bfbc709b..3e54438e3e 100644 --- a/BaseTools/Source/Python/Ecc/Configuration.py +++ b/BaseTools/Source/Python/Ecc/Configuration.py @@ -80,6 +80,8 @@ class Configuration(object): self.GeneralCheckFileExistence = 1
# Check whether file has non ACSII char
self.GeneralCheckNonAcsii = 1
+ # Check whether UNI file is valid
+ self.GeneralCheckUni = 1
## Space Checking
self.SpaceCheckAll = 1
@@ -236,6 +238,15 @@ class Configuration(object): # Check whether there are FILE_GUID duplication among different INF files
self.MetaDataFileCheckModuleFileGuidDuplication = 1
+ # Check Guid Format in INF files
+ self.MetaDataFileCheckModuleFileGuidFormat = 1
+ # Check Protocol Format in INF files
+ self.MetaDataFileCheckModuleFileProtocolFormat = 1
+ # Check Ppi Format in INF files
+ self.MetaDataFileCheckModuleFilePpiFormat = 1
+ # Check Pcd Format in INF files
+ self.MetaDataFileCheckModuleFilePcdFormat = 1
+
#
# The check points in this section are reserved
#
|