diff options
Diffstat (limited to 'src/lib/Makefile.inc')
-rw-r--r-- | src/lib/Makefile.inc | 8 |
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 |