From nobody Thu Mar 28 14:17:38 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+42176+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+42176+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1560234812; cv=none; d=zoho.com; s=zohoarc; b=mVh17D7UUX1tSzWE6vfOESQvHyQhylYQMpnYt9GQuKlONqJFNsYyBvtREtypG1bnG6zK/P2b59Rvptv0uMY2CHcSgH6fvItJxlRYxIdTxG7j/SBG3WXeOKSPlV/EgkTT8YGFrjVMAxpE3n4tOGMwBm0iJWYuXyRbCznaisnoRfI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560234812; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=qivluLsdQIqG9rgg9LzJ0Td2HFcq2IGCVVEhl224kYw=; b=MXrQL2x1FvkaFvKyJMUdFGt72QXanMzZwBbmNhPe7oGYqjwKHp1tQDoSQhT0+CzJXLArV0kZ7of1XBxZB1Rzx04AhVZhv8oRgFFUmgTDDtPzlXPM+OwxDwRIv2eqE/YwfN90kYL5SnyVqzG6az5h43bgohsXsOacn2eq5AuAxoQ= 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+42176+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 156023481215173.45800062590627; Mon, 10 Jun 2019 23:33:32 -0700 (PDT) Return-Path: X-Received: from mga12.intel.com (mga12.intel.com []) by groups.io with SMTP; Mon, 10 Jun 2019 23:33:31 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jun 2019 23:33:31 -0700 X-ExtLoop1: 1 X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.239.197.120]) by fmsmga005.fm.intel.com with ESMTP; 10 Jun 2019 23:33:30 -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 1/1] BaseTools:Build cache cannot store the cache files for library package Date: Tue, 11 Jun 2019 14:33:16 +0800 Message-Id: <20190611063316.16284-2-steven.shi@intel.com> In-Reply-To: <20190611063316.16284-1-steven.shi@intel.com> References: <20190611063316.16284-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=1560234811; bh=oc/MpXTf5EMGvfsbXE09M2O8ZGwDB9jesk8zp2uFDik=; h=Cc:Date:From:Reply-To:Subject:To; b=vImOx/RQ36hrUVwJ0UnBa/IEq2OkWeHjJJXoJLHMV28/2wb+K+32NGssENTdyZ0aXIq ZcmB+OVj9c0w6TrBaf3awujA+8A8/SsRBRKYqow6U/UJQBt857cf9Fb+QX4X//7de8MQY kj2aJd4v4EO79lmmZ+W8BZSRkGkXdiuUiro= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1867 Current build cache cannot store the cache for library package. build -p MdePkg\MdePkg.dsc -a IA32 -b DEBUG -t VS2015x86 --hash --binary-destination=3DBinCache After build, the expected result is the BinCache folder is generated and the MdePkg build cache files (e.g. .hash and .lib) are stored in the BinCache folder. But the BinCache folder is not generated at all. This patch is going to fix that issue. Cc: Liming Gao Cc: Bob Feng Cc: Zhiju.Fan Signed-off-by: Steven Shi Reviewed-by: Bob Feng --- BaseTools/Source/Python/AutoGen/AutoGen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/= Python/AutoGen/AutoGen.py index 3f41fbb507..f59a8038d5 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3569,8 +3569,11 @@ class ModuleAutoGen(AutoGen): if self.IsAsBuiltInfCreated: return =20 - # Skip the following code for libraries + # Skip INF file generation for libraries if self.IsLibrary: + # Only store the library cache if needed + if GlobalData.gBinCacheDest: + self.CopyModuleToCache() return =20 # Skip the following code for modules with no source files --=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 (#42176): https://edk2.groups.io/g/devel/message/42176 Mute This Topic: https://groups.io/mt/32013383/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-