From nobody Fri May 3 14:25:41 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+41564+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+41564+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559094431; cv=none; d=zoho.com; s=zohoarc; b=R2zQuiTkpPY2XCSL1vxO0EGeIJJy3OGHRnYd1FF+QgcY5tXRnbYY3uIyD+FBebxUCHFqJWtmuDuOEg0ncdRzIqt79vbQsXO9NNFIp84+9DJjOiTEJ+fCEQkmnsmYnxliR0OdLnEWOJOhvkPpRGINQ/5NEHgmf+4ZgrYJhr9H+wA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559094431; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=VwDqxkyPzHsyAHRimtU504Bul6iplDMkEin/+/CntHA=; b=JL1bmPhpPn34RvSA1qoQtEYCfK/j6d1ADtdO1AUzzvzJlhsWjFer4ISoOPPKo/tAIA/yByfQ4fLa8pFnwAQTf78saeWJPQPQf8NtvU99dNWfQHu6UDJT2ooiJtxXfFUGx5aR7xuA6KtYOzQ6mY/6MzbCKth7S5oJ30b3Zohj9SI= 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+41564+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 1559094431921468.3021777353305; Tue, 28 May 2019 18:47:11 -0700 (PDT) Return-Path: X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by groups.io with SMTP; Tue, 28 May 2019 18:47:10 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 May 2019 18:47:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,525,1549958400"; d="scan'208";a="179412309" X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.254.213.200]) by fmsmga002.fm.intel.com with ESMTP; 28 May 2019 18:47:06 -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 v2] BaseTools:Extend the binary cache to support library cache Date: Wed, 29 May 2019 09:46:54 +0800 Message-Id: <20190529014654.23276-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=1559094431; bh=EemSxzBvM9Bv7zKatS/KmCjEKh5Hf32lc82zD610MOY=; h=Cc:Date:From:Reply-To:Subject:To; b=q7KfwcX392ywhdwUGL7Xwe/oLjrSg/EaumnLQg8G4nXduldBAX0ARD0vtZzxqrEamGt 6KmCa/w2XX/L0cSSPL/XkeGE4A32nqrzdNH2PczqAdPyyKV212BR23m9dXwRBW3b2mPd/ JtNWeXbM0GsK4oKQ6edqjLN2v52pLieTKHE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" V2 change: Simplify the library cache implementation and remove CacheRestored flag based filter. Use the current CanSkipbyHash() filter in AddDependency() instead. V1 change: 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 --- 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 (#41564): https://edk2.groups.io/g/devel/message/41564 Mute This Topic: https://groups.io/mt/31829360/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-