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)
This commit is contained in:
Furquan Shaikh 2016-11-07 23:33:46 -08:00 committed by Furquan Shaikh
parent 1220589b4f
commit fb81474aa5
2 changed files with 10 additions and 0 deletions

View File

@ -52,10 +52,18 @@ verstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
ifeq ($(MOCK_TPM),1) ifeq ($(MOCK_TPM),1)
libverstage-y += mocked_tlcl.c libverstage-y += mocked_tlcl.c
romstage-$(CONFIG_SEPARATE_VERSTAGE) += mocked_tlcl.c
else else
libverstage-$(CONFIG_TPM) += tlcl.c libverstage-$(CONFIG_TPM) += tlcl.c
libverstage-$(CONFIG_TPM2) += tpm2_marshaling.c libverstage-$(CONFIG_TPM2) += tpm2_marshaling.c
libverstage-$(CONFIG_TPM2) += tpm2_tlcl.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 endif
verstage-$(CONFIG_GENERIC_UDELAY) += timer.c verstage-$(CONFIG_GENERIC_UDELAY) += timer.c

View File

@ -67,8 +67,10 @@ verstage-y += common.c
verstage-y += verstage.c verstage-y += verstage.c
ifeq (${CONFIG_VBOOT_MOCK_SECDATA},y) ifeq (${CONFIG_VBOOT_MOCK_SECDATA},y)
libverstage-y += secdata_mock.c libverstage-y += secdata_mock.c
romstage-$(CONFIG_SEPARATE_VERSTAGE) += secdata_mock.c
else else
libverstage-y += secdata_tpm.c libverstage-y += secdata_tpm.c
romstage-$(CONFIG_SEPARATE_VERSTAGE) += secdata_tpm.c
endif endif
romstage-y += vboot_handoff.c common.c romstage-y += vboot_handoff.c common.c