From nobody Thu May 2 04:16:31 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+40264+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+40264+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557378017; cv=none; d=zoho.com; s=zohoarc; b=LWmYSaOaZ4Yx8FV0uIKWwXMtKSSXfUta64yFaMRiOIbiktx5K9TgWin5OZI6dQEDVxZmHeX9xu4Y85B6AG7PaA2+y+KXOwtzuKSUha9COqNepjioSCsPfYz+WnJqGEor4KAARnNjQGrGKVeMryGKmcAAzGOzHRtb1+vFCT1U6Pw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557378017; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=lrwZXgunmtrJFNDv+tB5WgUTQXKNWb4ZuWoHPCgXlLs=; b=Pa0Y9a1pc5g9Z8oUd9paDQVa+NoCjJbwSmonTzIJA/qaw+LErCw9IOne7u4c9UDlMVjXnSaBv7y/tmbAG/y0IzKnwgfcNKe0js+j9wPDs9cr1nzOHS347MHNC5iQ6UYjS8cvjGATLonPwCFls22EqPnSC+wh4rAIIJDgDYvosQs= 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+40264+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 1557378017864378.21337199047275; Wed, 8 May 2019 22:00:17 -0700 (PDT) Return-Path: X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Wed, 08 May 2019 22:00:16 -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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 22:00:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,448,1549958400"; d="scan'208";a="169856953" X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.249.170.209]) by fmsmga002.fm.intel.com with ESMTP; 08 May 2019 22:00:14 -0700 From: "Steven Shi" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, liming.gao@intel.com, christian.rodriguez@intel.com, michael.johnson@intel.com Subject: [edk2-devel] [PATCH] BaseTools: Skip .mcb file module in Binary Cache Date: Thu, 9 May 2019 12:59:57 +0800 Message-Id: <20190509045957.592-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=1557378016; bh=Y9ldVPYRU/mNNiSpnKhlGfRqGiNBIh5iEPYI3LjSnMY=; h=Cc:Date:From:Reply-To:Subject:To; b=iSlxStmEW0gtLJU4i6d0N9Ln6iBfxbk6Bzs4knrxZGxUUYj6ld9HqBrPoEzTvV0TEuj /d7F5Fhdb96ufpCWUo08vgpXXZKyAo7U4/RlrUL9XKMLc/pa935u8VOyY+4Pv2J54zw6J r/PbZM+8WajKN3IT2h3hjnJNNh2nAUvyjRk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1723 Current Kabylake open platform will build fail if enabled to consume the binary cache, because the binary cache doesn't support to recovery the .mcb microcode file, e.g. m80406E8_00000026.mcb, in a platform level folder which is outside of the module output folder. In normal build without cache, the .mcb file is copied through OS copy/move commands defined in build rules which are not supported by Binary Cache. Change the Binary Cache to skip the .mcb file type module and always rebuild the module to apply the full build rules if it contains .mcb file. --- BaseTools/Source/Python/AutoGen/AutoGen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/= Python/AutoGen/AutoGen.py index 31721a6f9f..6b596c8a65 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3925,9 +3925,9 @@ class ModuleAutoGen(AutoGen): # If library or Module is binary do not skip by hash if self.IsBinaryModule: return False - # .inc is contains binary information so do not skip by hash as we= ll + # .inc and .mcb is contains binary information so do not skip by h= ash as well for f_ext in self.SourceFileList: - if '.inc' in str(f_ext): + if '.inc' in str(f_ext) or '.mcb' in str(f_ext): return False FileDir =3D path.join(GlobalData.gBinCacheSource, self.PlatformInf= o.Name, self.BuildTarget + "_" + self.ToolChain, self.Arch, self.SourceDir,= self.MetaFile.BaseName) HashFile =3D path.join(FileDir, self.Name + '.hash') @@ -4138,9 +4138,9 @@ class ModuleAutoGen(AutoGen): # If library or Module is binary do not skip by hash if self.IsBinaryModule: return False - # .inc is contains binary information so do not skip by hash as we= ll + # .inc or '.mcb' is contains binary information so do not skip by = hash as well for f_ext in self.SourceFileList: - if '.inc' in str(f_ext): + if '.inc' in str(f_ext) or '.mcb' in str(f_ext): return False if GlobalData.gUseHashCache: # If there is a valid hash or function generated a valid hash;= function will return False --=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 (#40264): https://edk2.groups.io/g/devel/message/40264 Mute This Topic: https://groups.io/mt/31552068/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-