]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/Check.py
BaseTools/Ecc: Fix a bug to report fake issue
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / Check.py
index 5e5c8e72e4002369a36ac5786227b6402d5202d1..a69ae344a3c36918a9d988b8c751e2f8c260c0a1 100644 (file)
@@ -653,6 +653,10 @@ class Check(object):
                     continue\r
                 else:\r
                     LibraryIns = os.path.normpath(mws.join(EccGlobalData.gWorkspace, LibraryClass[2]))\r
+                    SkipDirString = '|'.join(EccGlobalData.gConfig.SkipDirList)\r
+                    p = re.compile(r'.*[\\/](?:%s^\S)[\\/]?.*' % SkipDirString)\r
+                    if p.match(os.path.split(LibraryIns)[0].upper()):\r
+                        continue\r
                     SqlCommand = """select Value3 from Inf where BelongsToFile =\r
                                     (select ID from File where lower(FullPath) = lower('%s'))\r
                                     and Value2 = '%s'""" % (LibraryIns, 'LIBRARY_CLASS')\r