]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Tcg/Tcg2Config/Tpm12SupportNull.c
OvmfPkg/Tcg2ConfigPei: skip TPM-1.2 detection when building for ARM/AARCH64
[mirror_edk2.git] / OvmfPkg / Tcg / Tcg2Config / Tpm12SupportNull.c
diff --git a/OvmfPkg/Tcg/Tcg2Config/Tpm12SupportNull.c b/OvmfPkg/Tcg/Tcg2Config/Tpm12SupportNull.c
new file mode 100644 (file)
index 0000000..7bb377b
--- /dev/null
@@ -0,0 +1,25 @@
+/** @file\r
+  Null implementation of InternalTpm12Detect(), always returning\r
+  EFI_UNSUPPORTED.\r
+\r
+  Copyright (C) 2020, Red Hat, Inc.\r
+\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+**/\r
+\r
+#include "Tpm12Support.h"\r
+\r
+/**\r
+  Detect the presence of a TPM with interface version 1.2.\r
+\r
+  @retval EFI_UNSUPPORTED  The platform that includes this particular\r
+                           implementation of the function does not support\r
+                           TPM-1.2.\r
+**/\r
+EFI_STATUS\r
+InternalTpm12Detect (\r
+  VOID\r
+  )\r
+{\r
+  return EFI_UNSUPPORTED;\r
+}\r