From b3d07ff8d21ecab5a8060815e9abe73c904e3ed9 Mon Sep 17 00:00:00 2001 From: Hess Chen Date: Mon, 25 Aug 2014 01:16:34 +0000 Subject: 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 Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15886 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/Python/Ecc/Configuration.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'BaseTools/Source/Python/Ecc/Configuration.py') 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 # -- cgit v1.2.3