From nobody Mon Feb 9 01:20:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+78823+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78823+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1628266863; cv=none; d=zohomail.com; s=zohoarc; b=dub4G9+mu8nBUXtNFzPRY9orwhG5WaeT3q34/6MzTSsw/k4o5mskyBTtOwH12QafsWXNDFqsh8kc4WsmDfefiqaQMTcZx69BPMSCTVKrMAfJSBlOtXuq2Wj6J8Chji0qbgqqFaQrfAbGrPqQRu75mHm+BV6m+eDXXMBk5Orthik= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628266863; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=r7c7Fejnh2oWqapq+XlQydzMavBg6yqfKmtsV+4dxVs=; b=gu2JMDj/PCb9tUwT0blIMHm9WrqMg1IyYgXBXmNa2paoxhbMqokCuIvVr6UnJqF+fUc0w4oRC4IHfwQcxTlQiEHFaXL1f7ngxNKe/OJduY9qWiIwhbx8WwAtKRPHL7PrrLRw+UOvYpYf+fPbeRLoGMzysu9hU0UGM+uGmHNYcZ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78823+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1628266863249380.08460257864317; Fri, 6 Aug 2021 09:21:03 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id bhFrYY1788612x0AyfnyylCe; Fri, 06 Aug 2021 09:21:02 -0700 X-Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.158.5]) by mx.groups.io with SMTP id smtpd.web11.6474.1628264093431102181 for ; Fri, 06 Aug 2021 08:34:53 -0700 X-Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 176FYBt1015531; Fri, 6 Aug 2021 11:34:52 -0400 X-Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a89prvcs5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Aug 2021 11:34:52 -0400 X-Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 176FYWdA017074; Fri, 6 Aug 2021 11:34:51 -0400 X-Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a89prvcrm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Aug 2021 11:34:51 -0400 X-Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 176FOVd2010564; Fri, 6 Aug 2021 15:34:51 GMT X-Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma05wdc.us.ibm.com with ESMTP id 3a8mq9v69a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Aug 2021 15:34:50 +0000 X-Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 176FXnPw13762890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Aug 2021 15:33:49 GMT X-Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9565CBE059; Fri, 6 Aug 2021 15:33:49 +0000 (GMT) X-Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 25785BE054; Fri, 6 Aug 2021 15:33:49 +0000 (GMT) X-Received: from sbct-2.. (unknown [9.47.158.152]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 6 Aug 2021 15:33:49 +0000 (GMT) From: Stefan Berger To: devel@edk2.groups.io, jiewen.yao@intel.com Cc: marcandre.lureau@redhat.com, lersek@redhat.com, dick_wilkins@phoenix.com, Stefan Berger , Stefan Berger Subject: [edk2-devel] [RFC PATCH 3/7] SecurityPkg/TPM: Disable PcdGetBool (PcdRandomizePlatformHierarchy) Date: Fri, 6 Aug 2021 11:33:22 -0400 Message-Id: <20210806153326.990749-4-stefanb@linux.vnet.ibm.com> In-Reply-To: <20210806153326.990749-1-stefanb@linux.vnet.ibm.com> References: <20210806153326.990749-1-stefanb@linux.vnet.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: d0YbCn_FzLpOoNx3PZpYsSBxrqAEOGeh X-Proofpoint-ORIG-GUID: UeuIdX-1OyP60zs7XIIstxUOf_glenR6 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,stefanb@linux.vnet.ibm.com X-Gm-Message-State: wLPVxNgtPHcZjlv86l6Y5x6Bx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628266862; bh=dXyaq91PU85Ms3Md6yQhDVjwBKYKdLiFQ9e5Ik6gucU=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=D7k4VBQae2W0Ea9pCV+UOre5D+QaJFzEywGeezVIo20T96iOfDbN8/dw8f0HYHUXc1L /P8sF0jzYQpZOEGujSKotkxvX1DoknjOgUSPwuPJV0wsBb7D+8HHi6e+Ct3EkS96w+Tzq o6d1jyz1OUVle0BkYyyVoYXzRWGPPDxDlwc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628266865371100027 Content-Type: text/plain; charset="utf-8" To avoid this type of build errors, disable 'PcdGetBool (PcdRandomizePlatformHierarchy)'. Building ... /home/stefanb/dev/edk2/SecurityPkg/Library/SecureBootVariableP= rovisionLib/SecureBootVariableProvisionLib.inf [X64] In file included from /home/stefanb/dev/edk2/Build/OvmfX64/DEBUG_GCC5/X64/S= ecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchy= Lib/DEBUG/AutoGen.h:17, from : /home/stefanb/dev/edk2/SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/Pe= iDxeTpmPlatformHierarchyLib.c: In function =E2=80=98ConfigureTpmPlatformHie= rarchy=E2=80=99: /home/stefanb/dev/edk2/MdePkg/Include/Library/PcdLib.h:424:45: error: =E2= =80=98_PCD_GET_MODE_BOOL_PcdRandomizePlatformHierarchy=E2=80=99 undeclared = (first use in this function) 424 | #define PcdGetBool(TokenName) _PCD_GET_MODE_BOOL_##To= kenName | ^~~~~~~~~~~~~~~~~~~ Signed-off-by: Stefan Berger --- .../PeiDxeTpmPlatformHierarchyLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPla= tformHierarchyLib.c b/SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/Pei= DxeTpmPlatformHierarchyLib.c index 9812ab99ab..bea10d37a4 100644 --- a/SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHi= erarchyLib.c +++ b/SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHi= erarchyLib.c @@ -252,7 +252,7 @@ EFIAPI ConfigureTpmPlatformHierarchy ( ) { - if (PcdGetBool (PcdRandomizePlatformHierarchy)) { + if (1 /*PcdGetBool (PcdRandomizePlatformHierarchy)*/) { // // Send Tpm2HierarchyChange Auth with random value to avoid PlatformAu= th being null // --=20 2.31.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 (#78823): https://edk2.groups.io/g/devel/message/78823 Mute This Topic: https://groups.io/mt/84712028/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-