Debian Codegraph @

src/security/tpm/Makefile.mk

raw symbols SCIP
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 subdirs-$(CONFIG_TPM_GOOGLE) += tss/vendor/cr50
4
5 ## TSS
6
7 ifeq ($(CONFIG_TPM1),y)
8
9 ramstage-y += tss/tcg-1.2/tss.c
10 romstage-y += tss/tcg-1.2/tss.c
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
14
15 all-y += tss/tss.c
16
17 ## TSPI
18
19 ramstage-y += tspi/tspi.c
20 romstage-y += tspi/tspi.c
21 bootblock-y += tspi/tspi.c
22 verstage-y += tspi/tspi.c
23 postcar-y += tspi/tspi.c
24
25 endif # CONFIG_TPM1
26
27 ifeq ($(CONFIG_TPM2),y)
28
29 ramstage-y += tss/tcg-2.0/tss_marshaling.c
30 ramstage-y += tss/tcg-2.0/tss.c
31 ramstage-y += tss/tss.c
32
33 romstage-y += tss/tcg-2.0/tss_marshaling.c
34 romstage-y += tss/tcg-2.0/tss.c
35 romstage-y += tss/tss.c
36
37 verstage-$(CONFIG_VBOOT) += tss/tcg-2.0/tss_marshaling.c
38 verstage-$(CONFIG_VBOOT) += tss/tcg-2.0/tss.c
39 verstage-$(CONFIG_VBOOT) += tss/tss.c
40
41 postcar-y += tss/tcg-2.0/tss_marshaling.c
42 postcar-y += tss/tcg-2.0/tss.c
43 postcar-y += tss/tss.c
44
45 bootblock-y += tss/tcg-2.0/tss_marshaling.c
46 bootblock-y += tss/tcg-2.0/tss.c
47 bootblock-y += tss/tss.c
48
49 ## TSPI
50
51 ramstage-y += tspi/tspi.c
52 romstage-y += tspi/tspi.c
53 bootblock-y += tspi/tspi.c
54 verstage-$(CONFIG_VBOOT) += tspi/tspi.c
55 postcar-y += tspi/tspi.c
56
57 endif # CONFIG_TPM2
58
59 ifeq ($(CONFIG_TPM_MEASURED_BOOT),y)
60
61 bootblock-y += tspi/crtm.c
62 verstage-y += tspi/crtm.c
63 romstage-y += tspi/crtm.c
64 ramstage-y += tspi/crtm.c
65 postcar-y += tspi/crtm.c
66
67 ramstage-$(CONFIG_TPM_LOG_CB) += tspi/log.c
68 romstage-$(CONFIG_TPM_LOG_CB) += tspi/log.c
69 verstage-$(CONFIG_TPM_LOG_CB) += tspi/log.c
70 postcar-$(CONFIG_TPM_LOG_CB) += tspi/log.c
71 bootblock-$(CONFIG_TPM_LOG_CB) += tspi/log.c
72
73 ramstage-$(CONFIG_TPM_LOG_TPM1) += tspi/log-tpm1.c
74 romstage-$(CONFIG_TPM_LOG_TPM1) += tspi/log-tpm1.c
75 verstage-$(CONFIG_TPM_LOG_TPM1) += tspi/log-tpm1.c
76 postcar-$(CONFIG_TPM_LOG_TPM1) += tspi/log-tpm1.c
77 bootblock-$(CONFIG_TPM_LOG_TPM1) += tspi/log-tpm1.c
78
79 ramstage-$(CONFIG_TPM_LOG_TPM2) += tspi/log-tpm2.c
80 romstage-$(CONFIG_TPM_LOG_TPM2) += tspi/log-tpm2.c
81 verstage-$(CONFIG_TPM_LOG_TPM2) += tspi/log-tpm2.c
82 postcar-$(CONFIG_TPM_LOG_TPM2) += tspi/log-tpm2.c
83 bootblock-$(CONFIG_TPM_LOG_TPM2) += tspi/log-tpm2.c
84
85 endif # CONFIG_TPM_MEASURED_BOOT