]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
BaseTools: Decouple AutoGen Objects
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / WorkspaceDatabase.py
index 28a975f54e51cb0597266024ad5b2c4a495c4e23..ab7b4506c1c148ec5ca2f9f7cc87fac4859746df 100644 (file)
@@ -62,6 +62,8 @@ class WorkspaceDatabase(object):
         }\r
 \r
         _CACHE_ = {}    # (FilePath, Arch)  : <object>\r
+        def GetCache(self):\r
+            return self._CACHE_\r
 \r
         # constructor\r
         def __init__(self, WorkspaceDb):\r
@@ -203,6 +205,7 @@ class WorkspaceDatabase(object):
             EdkLogger.error('build', PARSER_ERROR, "Failed to parser DSC file: %s" % Dscfile)\r
         return Platform\r
 \r
+BuildDB = WorkspaceDatabase()\r
 ##\r
 #\r
 # This acts like the main() function for the script, unless it is 'import'ed into another\r