xref: /openbmc/linux/drivers/char/tpm/Makefile (revision 24069d81)
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
18
19tpm-$(CONFIG_ACPI) += tpm_ppi.o eventlog/acpi.o
20tpm-$(CONFIG_EFI) += eventlog/efi.o
21tpm-$(CONFIG_OF) += eventlog/of.o
22obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
23obj-$(CONFIG_TCG_TIS) += tpm_tis.o
24obj-$(CONFIG_TCG_TIS_SYNQUACER) += tpm_tis_synquacer.o
25
26obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o
27tpm_tis_spi-y := tpm_tis_spi_main.o
28tpm_tis_spi-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
29
30obj-$(CONFIG_TCG_TIS_I2C_CR50) += tpm_tis_i2c_cr50.o
31
32obj-$(CONFIG_TCG_TIS_I2C) += tpm_tis_i2c.o
33obj-$(CONFIG_TCG_TIS_I2C_ATMEL) += tpm_i2c_atmel.o
34obj-$(CONFIG_TCG_TIS_I2C_INFINEON) += tpm_i2c_infineon.o
35obj-$(CONFIG_TCG_TIS_I2C_NUVOTON) += tpm_i2c_nuvoton.o
36obj-$(CONFIG_TCG_NSC) += tpm_nsc.o
37obj-$(CONFIG_TCG_ATMEL) += tpm_atmel.o
38obj-$(CONFIG_TCG_INFINEON) += tpm_infineon.o
39obj-$(CONFIG_TCG_IBMVTPM) += tpm_ibmvtpm.o
40obj-$(CONFIG_TCG_TIS_ST33ZP24) += st33zp24/
41obj-$(CONFIG_TCG_XEN) += xen-tpmfront.o
42obj-$(CONFIG_TCG_CRB) += tpm_crb.o
43obj-$(CONFIG_TCG_VTPM_PROXY) += tpm_vtpm_proxy.o
44obj-$(CONFIG_TCG_FTPM_TEE) += tpm_ftpm_tee.o
45