summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vboot/Kconfig4
-rw-r--r--src/vboot/secdata_mock.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/vboot/Kconfig b/src/vboot/Kconfig
index c5173239ef..4ddf3e3534 100644
--- a/src/vboot/Kconfig
+++ b/src/vboot/Kconfig
@@ -17,8 +17,8 @@ menu "Verified Boot (vboot)"
config VBOOT
bool "Verify firmware with vboot."
default n
- select TPM if !MAINBOARD_HAS_TPM2
- select TPM2 if MAINBOARD_HAS_TPM2
+ select TPM if !MAINBOARD_HAS_TPM2 && !VBOOT_MOCK_SECDATA
+ select TPM2 if MAINBOARD_HAS_TPM2 && !VBOOT_MOCK_SECDATA
select TPM_INIT_FAILURE_IS_FATAL if PC80_SYSTEM && LPC_TPM
select SKIP_TPM_STARTUP_ON_NORMAL_BOOT if PC80_SYSTEM && LPC_TPM
depends on HAVE_HARD_RESET
diff --git a/src/vboot/secdata_mock.c b/src/vboot/secdata_mock.c
index b53a1969ca..72ee5b3c11 100644
--- a/src/vboot/secdata_mock.c
+++ b/src/vboot/secdata_mock.c
@@ -34,6 +34,7 @@
#include <antirollback.h>
#include <stdlib.h>
+#include <tpm_lite/tlcl.h>
#include <vb2_api.h>
uint32_t tpm_extend_pcr(struct vb2_context *ctx, int pcr,
@@ -77,3 +78,8 @@ uint32_t antirollback_write_space_rec_hash(const uint8_t *data, uint32_t size)
{
return TPM_SUCCESS;
}
+
+uint32_t tlcl_lib_init(void)
+{
+ return VB2_SUCCESS;
+}