From nobody Mon May 6 06:06:44 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+42435+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+42435+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1560512698; cv=none; d=zoho.com; s=zohoarc; b=HiEs1eqGpUby7Caj2q40R0rXDpMKVKC+EgLrV99Yr2Q9eIsPR2IFhF63i4ySDhIYaYYBepj53ujiqfwM5IbK9eSweJ1phJ5ESZ2207v2QH7wQbB4MNBG/nAYXSLsH6UM8H9HN2y34nYBhynQkqj5QjDHLqRXgWDnx8gYIUHgawM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560512698; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=w+xNDaqtBZf2PzTkHeWhdU7lCigx998cPwaYXO8l7I0=; b=ELBkvQVZ0Kv24k7m9ltodBDzIjJexQIPZ/M/32UCA1zwQpsFYwgf/m6U0lkn/3dFcOny1kSjhDQJWa5tYiZ9XNSTdaG/zzAfRYL2t7/alwZUMXcdIVxoFk9wwd8p3tHhLDL0cZJ+4SCleH1IyrrmvWmNMV2YuHMliFIqR1ed1Pw= 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+42435+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 156051269824559.74495585038801; Fri, 14 Jun 2019 04:44:58 -0700 (PDT) Return-Path: X-Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Fri, 14 Jun 2019 04:44:57 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2019 04:44:57 -0700 X-ExtLoop1: 1 X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.254.215.177]) by orsmga008.jf.intel.com with ESMTP; 14 Jun 2019 04:44:55 -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 output notification message Date: Fri, 14 Jun 2019 19:44:41 +0800 Message-Id: <20190614114441.25468-2-steven.shi@intel.com> In-Reply-To: <20190614114441.25468-1-steven.shi@intel.com> References: <20190614114441.25468-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=1560512697; bh=uYaVXsihnRgomLUHHEzSy5WYocxr5wkdduKalgOylN4=; h=Cc:Date:From:Reply-To:Subject:To; b=sRZP8/k75uQA97Uy/be/Ps1Ikt3m0LAwdWE87Evne0rk6/YK0dA1KtEWCdGt02qWQGl rzKIAO6yxpyRxc4+BYTjTNtOwULnP9V1L0PkChJzgwoyZnuUGRpDlZxSNsBwip5LBK2Ac TNzhr4B7HftLHWZATHXOkIcK3LhXbo7pfHM= 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=3D1868 Build need output the cache miss or hit notification message when consume the build cache. Current build does not output any message which is not clear for user to know whether the module built result is from cache or not. This patch adds message about the cache miss or hit when build consumes the cache. Cc: Liming Gao Cc: Bob Feng Cc: Zhiju.Fan Signed-off-by: Steven Shi Reviewed-by: Bob Feng --- BaseTools/Source/Python/build/build.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index 0855d4561c..2dca3c7b34 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1815,7 +1815,12 @@ class Build(): MaList.append(Ma) if Ma.CanSkipbyHash(): self.HashSkipModules.append(Ma) + if GlobalData.gBinCacheSource: + EdkLogger.quiet("cache hit: %s[%s]" % = (Ma.MetaFile.Path, Ma.Arch)) continue + else: + if GlobalData.gBinCacheSource: + EdkLogger.quiet("cache miss: %s[%s]" %= (Ma.MetaFile.Path, Ma.Arch)) # Not to auto-gen for targets 'clean', 'cleanl= ib', 'cleanall', 'run', 'fds' if self.Target not in ['clean', 'cleanlib', 'c= leanall', 'run', 'fds']: # for target which must generate AutoGen c= ode and makefile @@ -2004,7 +2009,12 @@ class Build(): continue if Ma.CanSkipbyHash(): self.HashSkipModules.append(Ma) + if GlobalData.gBinCacheSource: + EdkLogger.quiet("cache hit: %s[%s]" % (Ma.= MetaFile.Path, Ma.Arch)) continue + else: + if GlobalData.gBinCacheSource: + EdkLogger.quiet("cache miss: %s[%s]" % (Ma= .MetaFile.Path, Ma.Arch)) =20 # Not to auto-gen for targets 'clean', 'cleanlib',= 'cleanall', 'run', 'fds' if self.Target not in ['clean', 'cleanlib', 'clean= all', 'run', 'fds']: --=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 (#42435): https://edk2.groups.io/g/devel/message/42435 Mute This Topic: https://groups.io/mt/32062806/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-