]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/GlobalData.py
BaseTool: Add cache for the result of SkipAutogen.
[mirror_edk2.git] / BaseTools / Source / Python / Common / GlobalData.py
index f872066057b74ea1dcc096365891364282eb6af9..fac7cde708f6d63e7ffec3c8d7d075489b486969 100644 (file)
@@ -59,7 +59,13 @@ _GuidPattern = r"{Hex}{{8}}-{Hex}{{4}}-{Hex}{{4}}-{Hex}{{4}}-{Hex}{{12}}".format
 gGuidPattern = re.compile(r'{}'.format(_GuidPattern))\r
 gGuidPatternEnd = re.compile(r'{}$'.format(_GuidPattern))\r
 \r
+## Regular expressions for HEX matching\r
 g4HexChar = re.compile(r'{}{{4}}'.format(_HexChar))\r
+gHexPattern = re.compile(r'0[xX]{}+'.format(_HexChar))\r
+gHexPatternAll = re.compile(r'0[xX]{}+$'.format(_HexChar))\r
+\r
+## Regular expressions for string identifier checking\r
+gIdentifierPattern = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$', re.UNICODE)\r
 \r
 #\r
 # A global variable for whether current build in AutoGen phase or not.\r
@@ -87,13 +93,6 @@ gIgnoreSource = False
 #\r
 gFdfParser = None\r
 \r
-#\r
-# If a module is built more than once with different PCDs or library classes\r
-# a temporary INF file with same content is created, the temporary file is removed\r
-# when build exits.\r
-#\r
-gTempInfs = []\r
-\r
 BuildOptionPcd = []\r
 \r
 #\r
@@ -114,3 +113,4 @@ gPlatformHash = None
 gPackageHash = {}\r
 gModuleHash = {}\r
 gEnableGenfdsMultiThread = False\r
+gSikpAutoGenCache = set()\r