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