blob: a2d32cff8917a580384a6272d77939c4ee9100d6 [file] [log] [blame]
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +01001subdirs-$(CONFIG_TPM_CR50) += tss/vendor/cr50
2
Philipp Deppenwiese86391f12017-10-18 21:54:24 +02003## TSS
4
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +01005ifeq ($(CONFIG_TPM1),y)
Philipp Deppenwiese64e2d192017-10-18 17:13:07 +02006
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +01007ramstage-y += tss/tcg-1.2/tss.c
8romstage-y += tss/tcg-1.2/tss.c
Philipp Deppenwiese64e2d192017-10-18 17:13:07 +02009
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010010verstage-$(CONFIG_VBOOT) += tss/tcg-1.2/tss.c
11postcar-$(CONFIG_VBOOT) += tss/tcg-1.2/tss.c
12
13## TSPI
14
Philipp Deppenwiesec9b7d1f2018-11-10 00:35:02 +010015ramstage-y += tspi/tspi.c
16romstage-y += tspi/tspi.c
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010017
Philipp Deppenwiesec9b7d1f2018-11-10 00:35:02 +010018verstage-$(CONFIG_VBOOT) += tspi/tspi.c
19postcar-$(CONFIG_VBOOT) += tspi/tspi.c
20
21ramstage-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
22romstage-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
23verstage-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
24postcar-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010025
26endif # CONFIG_TPM1
27
28ifeq ($(CONFIG_TPM2),y)
29
30ramstage-y += tss/tcg-2.0/tss_marshaling.c
31ramstage-y += tss/tcg-2.0/tss.c
32
33romstage-y += tss/tcg-2.0/tss_marshaling.c
34romstage-y += tss/tcg-2.0/tss.c
35
36verstage-$(CONFIG_VBOOT) += tss/tcg-2.0/tss_marshaling.c
37verstage-$(CONFIG_VBOOT) += tss/tcg-2.0/tss.c
38
Frans Hendriks7c05d2a62019-06-13 15:46:12 +020039postcar-y += tss/tcg-2.0/tss_marshaling.c
40postcar-y += tss/tcg-2.0/tss.c
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010041
42## TSPI
43
Philipp Deppenwiesec9b7d1f2018-11-10 00:35:02 +010044ramstage-y += tspi/tspi.c
45romstage-y += tspi/tspi.c
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010046
Philipp Deppenwiesec9b7d1f2018-11-10 00:35:02 +010047verstage-$(CONFIG_VBOOT) += tspi/tspi.c
48postcar-$(CONFIG_VBOOT) += tspi/tspi.c
49
50ramstage-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
51romstage-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
52verstage-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
53postcar-$(CONFIG_VBOOT_MEASURED_BOOT) += tspi/log.c
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010054
55endif # CONFIG_TPM2