From nobody Mon Feb 9 05:18:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+51571+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51571+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1575350274; cv=none; d=zohomail.com; s=zohoarc; b=jChFjEVVG040zaKvvSzv2hMtNx0JtHr6z7SatzQF1NVPLQRQZ72VDx/rUPFYqy09N+yOBJB9dE97MHB08PIsvBJdSYEKVi/IA7vEBn4gsHWUfJcVtjXli+Vl3GNciH4KN8+6IvICmjGDKmndFVIbrtCBYMc+mxWrSEfJ+wg3pQs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575350274; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=PCCJnY9HXC5C6eLGWuV8q4nE8UXgl3Uda6K+0ujklXg=; b=Lo+aIEmSgXoYkighreS354SJY8MqRnYwGkmUHymh1W+huC+Pi1I6RHcWNt5652JlXbbUzHe+WWdflpWtMm/+RoSTFBPEPu+B8jE3xazuXN8/M9ZhG/2DEP0HFe790uUWf5S6w3/Ds2Bp0N0WwzpQtu7vpU/4HUFn8yDOToeThP4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51571+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 1575350274212206.6873538113323; Mon, 2 Dec 2019 21:17:54 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aaaaYY1788612xaaaaaaaaaa; Mon, 02 Dec 2019 21:17:53 -0800 X-Received: from mga01.intel.com (mga01.intel.com []) by mx.groups.io with SMTP id smtpd.web12.1960.1575350272400827632 for ; Mon, 02 Dec 2019 21:17:52 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Dec 2019 21:17:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,271,1571727600"; d="scan'208";a="222692976" X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.254.209.105]) by orsmga002.jf.intel.com with ESMTP; 02 Dec 2019 21:17:51 -0800 From: "Steven Shi" To: devel@edk2.groups.io Cc: liming.gao@intel.com, bob.c.feng@intel.com Subject: [edk2-devel] [PATCH v2 1/4] BaseTools: store more complete output files in binary cache Date: Tue, 3 Dec 2019 13:17:15 +0800 Message-Id: <20191203051718.22508-2-steven.shi@intel.com> In-Reply-To: <20191203051718.22508-1-steven.shi@intel.com> References: <20191203051718.22508-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 X-Gm-Message-State: aaaaaaaaaaaaaaaaaaaaaaaax1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1575350273; bh=6l+6kiqMuwxGoYYg+a5QqZGGEVsOIxXhQzq8zN2UiB4=; h=Cc:Date:From:Reply-To:Subject:To; b=er/bIEzp6cn2A49diEZVZBUnfYgONnCfff9yV/kRA/3vfdsXLMhrH2ogaIBWxoVeNhx 7yl1fiPwdr5csMo8ZiAqePSVyX+RmQiUkPb7bnBoczcTKdZVvii4AK+bJudtnlWNaukFT YUNNgJ/OAGMEFLa7muw0QM5Q/I7VyjRClMs= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Binary cache use the OutputFile method to return the module built output files needed to store in cache, but current OutputFile implementation doesn't return complete output files. Enhance the OutputFile method to return more complete output files. Cc: Liming Gao Cc: Bob Feng Signed-off-by: Steven Shi --- .../Source/Python/AutoGen/ModuleAutoGen.py | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py b/BaseTools/S= ource/Python/AutoGen/ModuleAutoGen.py index 1111d5de25..fce00c3ee7 100755 --- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py @@ -1308,28 +1308,16 @@ class ModuleAutoGen(AutoGen): def OutputFile(self): retVal =3D set() =20 - OutputDir =3D self.OutputDir.replace('\\', '/').strip('/') - DebugDir =3D self.DebugDir.replace('\\', '/').strip('/') - for Item in self.CodaTargetList: - File =3D Item.Target.Path.replace('\\', '/').strip('/').replac= e(DebugDir, '').replace(OutputDir, '').strip('/') - NewFile =3D path.join(self.OutputDir, File) - retVal.add(NewFile) - - Bin =3D self._GenOffsetBin() - if Bin: - NewFile =3D path.join(self.OutputDir, Bin) - retVal.add(NewFile) - - for Root, Dirs, Files in os.walk(self.OutputDir): + for Root, Dirs, Files in os.walk(self.BuildDir): for File in Files: # lib file is already added through above CodaTargetList, = skip it here - if not (File.lower().endswith('.obj') or File.lower().ends= with('.lib')): - NewFile =3D path.join(self.OutputDir, File) + if not (File.lower().endswith('.obj') or File.lower().ends= with('.debug')): + NewFile =3D path.join(Root, File) retVal.add(NewFile) =20 for Root, Dirs, Files in os.walk(self.FfsOutputDir): for File in Files: - NewFile =3D path.join(self.FfsOutputDir, File) + NewFile =3D path.join(Root, File) retVal.add(NewFile) =20 return retVal --=20 2.17.1 -=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 (#51571): https://edk2.groups.io/g/devel/message/51571 Mute This Topic: https://groups.io/mt/65521109/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-