From 5f89bcc4604ea9e439039d873e34a8c06b47c707 Mon Sep 17 00:00:00 2001 From: "Feng, Bob C" Date: Fri, 19 Jul 2019 09:10:28 +0800 Subject: 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 Cc: Michael D Kinney Cc: Liming Gao Reviewed-by: Michael D Kinney Reviewed-by: Liming Gao --- BaseTools/Source/Python/Common/Misc.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'BaseTools/Source/Python/Common/Misc.py') diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 9a63463913..27dbdace42 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -246,13 +246,8 @@ def ProcessDuplicatedInf(Path, BaseName, Workspace): else: Filename = BaseName + Path.BaseName - # - # If -N is specified on command line, cache is disabled - # The directory has to be created - # DbDir = os.path.split(GlobalData.gDatabasePath)[0] - if not os.path.exists(DbDir): - os.makedirs(DbDir) + # # A temporary INF is copied to database path which must have write permission # The temporary will be removed at the end of build -- cgit v1.2.3