Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 1 | subdirs-$(CONFIG_TPM_GOOGLE) += tss/vendor/cr50 |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 2 | |
Philipp Deppenwiese | 86391f1 | 2017-10-18 21:54:24 +0200 | [diff] [blame] | 3 | ## TSS |
| 4 | |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 5 | ifeq ($(CONFIG_TPM1),y) |
Philipp Deppenwiese | 64e2d19 | 2017-10-18 17:13:07 +0200 | [diff] [blame] | 6 | |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 7 | ramstage-y += tss/tcg-1.2/tss.c |
| 8 | romstage-y += tss/tcg-1.2/tss.c |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 9 | bootblock-y += tss/tcg-1.2/tss.c |
| 10 | verstage-y += tss/tcg-1.2/tss.c |
| 11 | postcar-y += tss/tcg-1.2/tss.c |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 12 | |
| 13 | ## TSPI |
| 14 | |
Philipp Deppenwiese | c9b7d1f | 2018-11-10 00:35:02 +0100 | [diff] [blame] | 15 | ramstage-y += tspi/tspi.c |
| 16 | romstage-y += tspi/tspi.c |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 17 | bootblock-y += tspi/tspi.c |
| 18 | verstage-y += tspi/tspi.c |
| 19 | postcar-y += tspi/tspi.c |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 20 | |
| 21 | endif # CONFIG_TPM1 |
| 22 | |
| 23 | ifeq ($(CONFIG_TPM2),y) |
| 24 | |
| 25 | ramstage-y += tss/tcg-2.0/tss_marshaling.c |
| 26 | ramstage-y += tss/tcg-2.0/tss.c |
| 27 | |
| 28 | romstage-y += tss/tcg-2.0/tss_marshaling.c |
| 29 | romstage-y += tss/tcg-2.0/tss.c |
| 30 | |
| 31 | verstage-$(CONFIG_VBOOT) += tss/tcg-2.0/tss_marshaling.c |
| 32 | verstage-$(CONFIG_VBOOT) += tss/tcg-2.0/tss.c |
| 33 | |
Frans Hendriks | 7c05d2a6 | 2019-06-13 15:46:12 +0200 | [diff] [blame] | 34 | postcar-y += tss/tcg-2.0/tss_marshaling.c |
| 35 | postcar-y += tss/tcg-2.0/tss.c |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 36 | |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 37 | bootblock-y += tss/tcg-2.0/tss_marshaling.c |
| 38 | bootblock-y += tss/tcg-2.0/tss.c |
| 39 | |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 40 | ## TSPI |
| 41 | |
Philipp Deppenwiese | c9b7d1f | 2018-11-10 00:35:02 +0100 | [diff] [blame] | 42 | ramstage-y += tspi/tspi.c |
| 43 | romstage-y += tspi/tspi.c |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 44 | bootblock-y += tspi/tspi.c |
Philipp Deppenwiese | c9b7d1f | 2018-11-10 00:35:02 +0100 | [diff] [blame] | 45 | verstage-$(CONFIG_VBOOT) += tspi/tspi.c |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 46 | postcar-y += tspi/tspi.c |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 47 | |
| 48 | endif # CONFIG_TPM2 |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 49 | |
| 50 | ifeq ($(CONFIG_TPM_MEASURED_BOOT),y) |
| 51 | |
| 52 | bootblock-y += tspi/crtm.c |
| 53 | verstage-y += tspi/crtm.c |
| 54 | romstage-y += tspi/crtm.c |
| 55 | ramstage-y += tspi/crtm.c |
| 56 | postcar-y += tspi/crtm.c |
| 57 | |
Sergii Dmytruk | 97fe17f | 2022-10-23 00:24:37 +0300 | [diff] [blame] | 58 | ramstage-$(CONFIG_TPM_LOG_CB) += tspi/log.c |
| 59 | romstage-$(CONFIG_TPM_LOG_CB) += tspi/log.c |
| 60 | verstage-$(CONFIG_TPM_LOG_CB) += tspi/log.c |
| 61 | postcar-$(CONFIG_TPM_LOG_CB) += tspi/log.c |
| 62 | bootblock-$(CONFIG_TPM_LOG_CB) += tspi/log.c |
Bill XIE | c79e96b | 2019-08-22 20:28:36 +0800 | [diff] [blame] | 63 | |
| 64 | endif # CONFIG_TPM_MEASURED_BOOT |