git: 37e614b16cd6 - main - sysutils/edk2: enable TPM on bhyve

From: Corvin Köhne <corvink_at_FreeBSD.org>
Date: Fri, 15 Sep 2023 15:01:35 UTC
The branch main has been updated by corvink:

URL: https://cgit.FreeBSD.org/ports/commit/?id=37e614b16cd6129660b2416f7039e09a1f858ae4

commit 37e614b16cd6129660b2416f7039e09a1f858ae4
Author:     Corvin Köhne <corvink@FreeBSD.org>
AuthorDate: 2023-09-15 09:48:39 +0000
Commit:     Corvin Köhne <corvink@FreeBSD.org>
CommitDate: 2023-09-15 15:00:35 +0000

    sysutils/edk2: enable TPM on bhyve
    
    bhyve gained support for TPM emulation in the upcoming FreeBSD 14.0. The
    firmware has to setup the TPM to make it useable for the OS.
    
    Reviewed by:            manu
    Approved by:            manu
    Sponsored by:           Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D41868
---
 sysutils/edk2/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysutils/edk2/Makefile b/sysutils/edk2/Makefile
index d68e296d2242..839b3aa3fa88 100644
--- a/sysutils/edk2/Makefile
+++ b/sysutils/edk2/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	edk2
 PORTVERSION=	g202308
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 
 PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
@@ -115,7 +115,7 @@ ONLY_FOR_ARCHS=	amd64
 ONLY_FOR_ARCHS_REASON=	Bhyve only runs on x64
 PLAT=		bhyve
 PLAT_ARCH=	X64
-PLAT_ARGS+=	-D SECURE_BOOT_ENABLE=TRUE
+PLAT_ARGS+=	-D SECURE_BOOT_ENABLE=TRUE -D TPM2_ENABLE=TRUE
 PLAT_TARGET=	RELEASE
 PLATFILE=	OvmfPkg/Bhyve/BhyveX64.dsc
 PLAT_RESULT=	BhyveX64/${PLAT_TARGET}_GCC5/FV/BHYVE.fd