summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2016-11-07 23:33:46 -0800
committerFurquan Shaikh <furquan@google.com>2016-11-10 00:56:04 +0100
commitfb81474aa5fb92e5f514165572dfdcaae9a50ce0 (patch)
treefbdfb3168d411a589610c730697897b10ec295dd /src/lib
parent1220589b4f10a03639a9a6957c1b111a91db4bd7 (diff)
downloadcoreboot-fb81474aa5fb92e5f514165572dfdcaae9a50ce0.tar.xz
TPM: Add TPM driver files to romstage
This driver is required for reading and updating TPM space for recovery MRC data hash in romstage. BUG=chrome-os-partner:59355 BRANCH=None TEST=Compiles successfully for reef. Change-Id: I8edb7af13285a7a192e3d55fc6a11cfe12654bf9 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/17270 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Makefile.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index 67f8364aa8..36591adbb6 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -52,10 +52,18 @@ verstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
ifeq ($(MOCK_TPM),1)
libverstage-y += mocked_tlcl.c
+romstage-$(CONFIG_SEPARATE_VERSTAGE) += mocked_tlcl.c
else
libverstage-$(CONFIG_TPM) += tlcl.c
libverstage-$(CONFIG_TPM2) += tpm2_marshaling.c
libverstage-$(CONFIG_TPM2) += tpm2_tlcl.c
+
+ifeq ($(CONFIG_SEPARATE_VERSTAGE),y)
+romstage-$(CONFIG_TPM) += tlcl.c
+romstage-$(CONFIG_TPM2) += tpm2_marshaling.c
+romstage-$(CONFIG_TPM2) += tpm2_tlcl.c
+endif # CONFIG_SEPARATE_VERSTAGE
+
endif
verstage-$(CONFIG_GENERIC_UDELAY) += timer.c