]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: drop TPM_CONFIG_ENABLE
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Dec 2021 11:39:18 +0000 (12:39 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Dec 2021 16:16:05 +0000 (16:16 +0000)
Drop TPM_CONFIG_ENABLE config option.  Including TPM support in the
build without also including the TPM configuration menu is not useful.

Suggested-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
OvmfPkg/OvmfTpmDefines.dsc.inc
OvmfPkg/OvmfTpmDxe.fdf.inc
OvmfPkg/OvmfTpmPcdsHii.dsc.inc
OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
OvmfPkg/PlatformCI/.azurepipelines/Windows-VS2019.yml
OvmfPkg/PlatformCI/ReadMe.md

index d5c2586118f1315b7e2723755d357e719e1567fe..e025d85a58781da741d118f397dfbbeaffa57e96 100644 (file)
@@ -14,9 +14,7 @@
       NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf\r
       NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf\r
   }\r
-!if $(TPM_CONFIG_ENABLE) == TRUE\r
   SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf\r
-!endif\r
   SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {\r
     <LibraryClasses>\r
       Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
index 51da7508b3076d3ce5affdf3059614aba7f1efb7..5df4a331fb992e58e5e41a11675ec34bcf4c9404 100644 (file)
@@ -3,4 +3,3 @@
 ##\r
 \r
   DEFINE TPM_ENABLE              = FALSE\r
-  DEFINE TPM_CONFIG_ENABLE       = FALSE\r
index 9dcdaaf01c397c5d626d8775a86befb8b5ff5aa5..32eef246387a8044e6f47b5776fa02f004d898d2 100644 (file)
@@ -6,7 +6,5 @@
 INF  SecurityPkg/Tcg/TcgDxe/TcgDxe.inf\r
 INF  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf\r
 INF  SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf\r
-!if $(TPM_CONFIG_ENABLE) == TRUE\r
 INF  SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf\r
 !endif\r
-!endif\r
index 164bc9c7fca077190dbc73a4d6ca49bcb191d2de..2e02a5b4cb90500e58e9600f86d34d23acee650c 100644 (file)
@@ -2,7 +2,7 @@
 #    SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ##\r
 \r
-!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE\r
+!if $(TPM_ENABLE) == TRUE\r
   gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS\r
   gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS\r
 !endif\r
index 2de0688cfeb1439c0cb84826b122fa20253b4466..a908a5fe919a3caef8cd03015681dea2634cc7b0 100644 (file)
@@ -95,21 +95,21 @@ jobs:
           OVMF_IA32X64_FULL_DEBUG:\r
             Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
             Build.Arch: "IA32,X64"\r
-            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_TPM_CONFIG_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
             Build.Target: "DEBUG"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
           OVMF_IA32X64_FULL_RELEASE:\r
             Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
             Build.Arch: "IA32,X64"\r
-            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_TPM_CONFIG_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
             Build.Target: "RELEASE"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
           OVMF_IA32X64_FULL_NOOPT:\r
             Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
             Build.Arch: "IA32,X64"\r
-            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_TPM_CONFIG_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
             Build.Target: "NOOPT"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
index 2e07a3d8893a3a73872621df5d49fbbfc8344652..09f9851312a29d033693d16c698c73d39adf619b 100644 (file)
@@ -94,14 +94,14 @@ jobs:
           OVMF_IA32X64_FULL_DEBUG:\r
             Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
             Build.Arch: "IA32,X64"\r
-            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_TPM_CONFIG_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
             Build.Target: "DEBUG"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
           OVMF_IA32X64_FULL_RELEASE:\r
             Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
             Build.Arch: "IA32,X64"\r
-            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_TPM_CONFIG_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
             Build.Target: "RELEASE"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
@@ -112,7 +112,7 @@ jobs:
     #       OVMF_IA32X64_FULL_NOOPT:\r
     #         Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
     #         Build.Arch: "IA32,X64"\r
-    #         Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_TPM_CONFIG_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
+    #         Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=1 BLD_*_SMM_REQUIRE=1 BLD_*_TPM_ENABLE=1 BLD_*_NETWORK_TLS_ENABLE=1 BLD_*_NETWORK_IP6_ENABLE=1 BLD_*_NETWORK_HTTP_BOOT_ENABLE=1"\r
     #         Build.Target: "NOOPT"\r
     #         Run.Flags: $(run_flags)\r
     #         Run: $(should_run)\r
index 2ce9007dbeaa5948978796a248b72a04feafea00..44aa7c4a9db2772a1e3bd43d28aaae4bc575187e 100644 (file)
@@ -14,7 +14,7 @@ supported and are described below.
 | IA32                    | IA32               | OvmfPkgIa32.dsc     | None            |\r
 | X64                     | X64                | OvmfPkgIa64.dsc     | None            |\r
 | IA32 X64                | PEI-IA32 DXE-X64   | OvmfPkgIa32X64.dsc  | None            |\r
-| IA32 X64 Full           | PEI-IA32 DXE-X64   | OvmfPkgIa32X64.dsc  | SECURE_BOOT_ENABLE=1 SMM_REQUIRE=1 TPM_ENABLE=1 TPM_CONFIG_ENABLE=1 NETWORK_TLS_ENABLE=1 NETWORK_IP6_ENABLE=1 NETWORK_HTTP_BOOT_ENABLE=1 |\r
+| IA32 X64 Full           | PEI-IA32 DXE-X64   | OvmfPkgIa32X64.dsc  | SECURE_BOOT_ENABLE=1 SMM_REQUIRE=1 TPM_ENABLE=1 NETWORK_TLS_ENABLE=1 NETWORK_IP6_ENABLE=1 NETWORK_HTTP_BOOT_ENABLE=1 |\r
 \r
 ## EDK2 Developer environment\r
 \r