xref: /linux/drivers/char/tpm/Makefile (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel tpm device drivers.
4#
5obj-$(CONFIG_TCG_TPM) += tpm.o
6tpm-y := tpm-chip.o
7tpm-y += tpm-dev-common.o
8tpm-y += tpm-dev.o
9tpm-y += tpm-interface.o
10tpm-y += tpm1-cmd.o
11tpm-y += tpm2-cmd.o
12tpm-y += tpmrm-dev.o
13tpm-y += tpm2-space.o
14tpm-y += tpm-sysfs.o
15tpm-y += eventlog/common.o
16tpm-y += eventlog/tpm1.o
17tpm-y += eventlog/tpm2.o
18tpm-y += tpm-buf.o
19tpm-y += tpm2-sessions.o
20
21tpm-$(CONFIG_ACPI) += tpm_ppi.o eventlog/acpi.o
22tpm-$(CONFIG_EFI) += eventlog/efi.o
23tpm-$(CONFIG_OF) += eventlog/of.o
24obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
25obj-$(CONFIG_TCG_TIS) += tpm_tis.o
26obj-$(CONFIG_TCG_TIS_SYNQUACER) += tpm_tis_synquacer.o
27
28obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o
29tpm_tis_spi-y := tpm_tis_spi_main.o
30tpm_tis_spi-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
31
32obj-$(CONFIG_TCG_TIS_I2C_CR50) += tpm_tis_i2c_cr50.o
33
34obj-$(CONFIG_TCG_TIS_I2C) += tpm_tis_i2c.o
35obj-$(CONFIG_TCG_TIS_I2C_ATMEL) += tpm_i2c_atmel.o
36obj-$(CONFIG_TCG_TIS_I2C_INFINEON) += tpm_i2c_infineon.o
37obj-$(CONFIG_TCG_TIS_I2C_NUVOTON) += tpm_i2c_nuvoton.o
38obj-$(CONFIG_TCG_NSC) += tpm_nsc.o
39obj-$(CONFIG_TCG_ATMEL) += tpm_atmel.o
40obj-$(CONFIG_TCG_INFINEON) += tpm_infineon.o
41obj-$(CONFIG_TCG_IBMVTPM) += tpm_ibmvtpm.o
42obj-$(CONFIG_TCG_TIS_ST33ZP24) += st33zp24/
43obj-$(CONFIG_TCG_XEN) += xen-tpmfront.o
44obj-$(CONFIG_TCG_CRB) += tpm_crb.o
45obj-$(CONFIG_TCG_VTPM_PROXY) += tpm_vtpm_proxy.o
46obj-$(CONFIG_TCG_FTPM_TEE) += tpm_ftpm_tee.o
47