From nobody Tue May 7 07:19:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+41655+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41655+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559183512; cv=none; d=zoho.com; s=zohoarc; b=EqUHVhMKxG5dVUmMi6zPaHh2RtYD/UbPsnIPuvhXgA2HCVpJcsRZlbfxv78YQfUWVkAF2uCUJn6JaFJPdS+lfK7v5MkLiIMB4pb+SvcP7LA4A+KhM5AakPaSboQ/nZ3muTb95mpbsEFi9UtKREpvVmMg69D/ou0UeKh0NQSOvEY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559183512; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=gk2LR3wHCHeJkHyoYBd1TnGuLCrSSnlvJ5do/OxcbRk=; b=VGQQceiRZvCy8TRpiO5xnlohWaf7R6/5+XUe/LBp8LvtafkyADUGBXLyGH0V7Sm+Cxnt9vUJx+s9ra30zQBpE5PjUBb+1mEEQ6DzQyu+ELoY9LYXLPGpX+Ks0HMdX0kPyRR129UT50IOJnv4lkwa+zBL4i1nGX0HuWWJRTRNGQ8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41655+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1559183512019238.765079852653; Wed, 29 May 2019 19:31:52 -0700 (PDT) Return-Path: X-Received: from mga12.intel.com (mga12.intel.com []) by groups.io with SMTP; Wed, 29 May 2019 19:31:51 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2019 19:31:50 -0700 X-ExtLoop1: 1 X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.249.171.157]) by orsmga006.jf.intel.com with ESMTP; 29 May 2019 19:31:47 -0700 From: "Steven Shi" To: devel@edk2.groups.io Cc: liming.gao@intel.com, bob.c.feng@intel.com, christian.rodriguez@intel.com, zhijux.fan@intel.com Subject: [edk2-devel] [PATCH v3 1/1] BaseTools:Extend the binary cache to support library cache Date: Thu, 30 May 2019 10:31:27 +0800 Message-Id: <20190530023127.23228-2-steven.shi@intel.com> In-Reply-To: <20190530023127.23228-1-steven.shi@intel.com> References: <20190530023127.23228-1-steven.shi@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,steven.shi@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1559183511; bh=xS1vkWJxKu2jeX16uxFbqlpbF6OuVLL8YhhycT0clIw=; h=Cc:Date:From:Reply-To:Subject:To; b=bem4PoW0+9kMJuRDLK9sRdSyrvTIniXZ0a40/8TTtQ+AqQm+JKAMb2OA4lrzyIa1GK2 RRpZlvgNGfkq4klpbCxj8Az6pVcXD6rkIWhUAa+Is35X8wc4SwSBQRgssWJuSRT+cRPFE 6TI3aw5Q2ea1VYET7Z57plr4nFZE3xD/kUU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" https://bugzilla.tianocore.org/show_bug.cgi?id=3D1797 Current binary cache doesn't support to save and restore the library module. If a driver module cache miss happen, all its dependency library modules need rebuild which is very time-consuming. This patch is to entend the binary cache to support library. Cc: Liming Gao Cc: Bob Feng Cc: Christian Rodriguez Signed-off-by: Steven Shi Reviewed-by: Bob Feng --- BaseTools/Source/Python/AutoGen/AutoGen.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/= Python/AutoGen/AutoGen.py index a5bef4f7c6..7b35f837f5 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3906,6 +3906,12 @@ class ModuleAutoGen(AutoGen): ModuleFile =3D path.join(self.OutputDir, self.Name + '.inf') if os.path.exists(ModuleFile): shutil.copy2(ModuleFile, FileDir) + else: + OutputDir =3D self.OutputDir.replace('\\', '/').strip('/') + DebugDir =3D self.DebugDir.replace('\\', '/').strip('/') + for Item in self.CodaTargetList: + File =3D Item.Target.Path.replace('\\', '/').strip('/').re= place(DebugDir, '').replace(OutputDir, '').strip('/') + self.OutputFile.add(File) if not self.OutputFile: Ma =3D self.BuildDatabase[self.MetaFile, self.Arch, self.Build= Target, self.ToolChain] self.OutputFile =3D Ma.Binaries --=20 2.17.1.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#41655): https://edk2.groups.io/g/devel/message/41655 Mute This Topic: https://groups.io/mt/31843505/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-