From nobody Tue Feb 10 11:12:38 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+54930+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+54930+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582743932; cv=none; d=zohomail.com; s=zohoarc; b=eTbLNiylfy5dDN+9gq8jB8kH8IhMXEdtPfbckcmnH/FYFSvkyYLpLeb+phau9uhtnGw6usCNrtS/L5LOv0G+vQ1EjLEXHB1noPoVSAHDCD6FHLdAUIjcYSxgz39GG1qMeVxwJhr9nYgUAsD911ZRM8GDAzgGjU8/t3Oj3mlVBpA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582743932; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=H6E/gn5OnF5rBnYm/y7NA0xqsiZjcHWvig9lc9702NY=; b=atfPquEyYskkO8vmoyRreS9F9SvIgpvpBpQ77lbjZkpHDaiT7VOIZjzCci/y1uHm24B5QGT0VaZtEwAJnG0YrLGouuUxubg/zrPZOyqsYJqBpoGhD2ks+U3Cmi82W4w4FeU5/zcGj8iojimOPDuEzn8Gyd8kCIdoQqPUZ13lFXM= 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+54930+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 1582743932501644.6112131143276; Wed, 26 Feb 2020 11:05:32 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id HheQYY1788612x56hC5Kch7i; Wed, 26 Feb 2020 11:05:31 -0800 X-Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.groups.io with SMTP id smtpd.web12.591.1582743930845765295 for ; Wed, 26 Feb 2020 11:05:31 -0800 X-Received: by mail-wm1-f65.google.com with SMTP id q9so454992wmj.5 for ; Wed, 26 Feb 2020 11:05:30 -0800 (PST) X-Gm-Message-State: zFeS9rCVhMHqjG2WDtJkSZUUx1787277AA= X-Google-Smtp-Source: APXvYqy2yAObSQ7w459Ax+ONu1sY0YnFgIrgI0o2zkDeBiFUFxmCWAf9/+DpX9VtGb1WmSm0hF7sdA== X-Received: by 2002:a05:600c:2104:: with SMTP id u4mr307153wml.93.1582743929176; Wed, 26 Feb 2020 11:05:29 -0800 (PST) X-Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id z1sm3932823wmf.42.2020.02.26.11.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 11:05:28 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , lersek@redhat.com, eric.auger@redhat.com, philmd@redhat.com, marcandre.lureau@redhat.com, stefanb@linux.ibm.com, leif@nuviainc.com Subject: [edk2-devel] [PATCH v3 8/9] ArmVirtPkg/ArmVirtQemu: enable the TPM2 configuration module Date: Wed, 26 Feb 2020 20:05:13 +0100 Message-Id: <20200226190514.31395-9-ard.biesheuvel@linaro.org> In-Reply-To: <20200226190514.31395-1-ard.biesheuvel@linaro.org> References: <20200226190514.31395-1-ard.biesheuvel@linaro.org> 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,ard.biesheuvel@linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1582743931; bh=+K+EfJqWi2W18CxOAYBki08pNf2SBtkB3+73iWcB3K4=; h=Cc:Date:From:Reply-To:Subject:To; b=IRIwrwPNIJYky7nOIjd1BfcqQ55Q1wFj34gVwOCVYRRveeEcI+kqDEOZjCBbmvXLI1D ZpPJjcq/RylTB8Mh2rRNeNS5d3SzK9206svNh6pk3b6lDN8RVkBSouKgoV3c4+zASl3Ih hv3OUMFdcLgSTrbbhiHRaiDCzqb55nuDg3I= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Enable the DXE phase component that publishes the HII pages and associated logic to enable TPM2 parameters to be configured by the user via the setup menu. Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/ArmVirtQemu.dsc | 9 +++++++++ ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 3 +++ 2 files changed, 12 insertions(+) diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index 9fe5ab37611c..7cb2d1b42fb8 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -30,6 +30,7 @@ [Defines] DEFINE TTY_TERMINAL =3D FALSE DEFINE SECURE_BOOT_ENABLE =3D FALSE DEFINE TPM2_ENABLE =3D FALSE + DEFINE TPM2_CONFIG_ENABLE =3D FALSE =20 # # Network definition @@ -268,6 +269,11 @@ [PcdsDynamicDefault.common] [PcdsDynamicHii] gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGui= d|0x0|FALSE|NV,BS =20 +!if $(TPM2_CONFIG_ENABLE) =3D=3D TRUE + gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_= VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS + gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2C= onfigFormSetGuid|0x8|3|NV,BS +!endif + ##########################################################################= ###### # # Components Section - list of all EDK II Modules needed by this Platform @@ -490,6 +496,9 @@ [Components.common] NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512= .inf NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf } +!if $(TPM2_CONFIG_ENABLE) =3D=3D TRUE + SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf +!endif !endif =20 # diff --git a/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc b/ArmVirtPkg/ArmVirtQemuF= vMain.fdf.inc index 63247fd10058..d481e4b2b8fb 100644 --- a/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc +++ b/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc @@ -188,4 +188,7 @@ [FV.FvMain] # !if $(TPM2_ENABLE) =3D=3D TRUE INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf +!if $(TPM2_CONFIG_ENABLE) =3D=3D TRUE + INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf +!endif !endif --=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 (#54930): https://edk2.groups.io/g/devel/message/54930 Mute This Topic: https://groups.io/mt/71571525/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-