diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-07-19 09:10:28 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-07-22 09:21:14 +0800 |
commit | 5f89bcc4604ea9e439039d873e34a8c06b47c707 (patch) | |
tree | 02013332909ab9d94b61dce562043b90575f9cf9 /BaseTools/Source/Python/build/build.py | |
parent | 8ff68cd5e4c91c97f36ac0f44d9f2b4ea12b5e0d (diff) | |
download | edk2-5f89bcc4604ea9e439039d873e34a8c06b47c707.tar.gz edk2-5f89bcc4604ea9e439039d873e34a8c06b47c707.tar.bz2 edk2-5f89bcc4604ea9e439039d873e34a8c06b47c707.zip |
BaseTools: Create ".cache" folder when initialize Build object
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1986
Create "Conf/.cache" folder as early as possible
so that the later code do need to check
if it exits and then create it.
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/build.py')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index d6006b651f..6bc528974d 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -773,7 +773,8 @@ class Build(): ConfDirectoryPath = mws.join(self.WorkspaceDir, 'Conf')
GlobalData.gConfDirectory = ConfDirectoryPath
GlobalData.gDatabasePath = os.path.normpath(os.path.join(ConfDirectoryPath, GlobalData.gDatabasePath))
-
+ if not os.path.exists(os.path.join(GlobalData.gConfDirectory, '.cache')):
+ os.makedirs(os.path.join(GlobalData.gConfDirectory, '.cache'))
self.Db = WorkspaceDatabase()
self.BuildDatabase = self.Db.BuildObject
self.Platform = None
|