1193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/tpm 297f24f66STakanori Watanabe 397f24f66STakanori WatanabeKMOD= tpm 4f8645c90STakanori Watanabe 5c2e9c5bbSJustin HibbitsSRCS= bus_if.h device_if.h tpm_if.c tpm_if.h 6c2e9c5bbSJustin HibbitsSRCS+= opt_acpi.h opt_tpm.h 7c2e9c5bbSJustin Hibbits 8f8645c90STakanori Watanabe#Bus specific stuff. 9c2e9c5bbSJustin Hibbits.if ${MACHINE_ARCH:Namd64:Ni386} == "" 10c2e9c5bbSJustin HibbitsSRCS+= tpm.c 11c2e9c5bbSJustin HibbitsSRCS+= tpm_acpi.c tpm_isa.c 12c2e9c5bbSJustin HibbitsSRCS+= isa_if.h 13c2e9c5bbSJustin Hibbits.endif 14c2e9c5bbSJustin Hibbits 1511721f66SMarcin Wojtas#TPM 2.0 16c2e9c5bbSJustin HibbitsSRCS+= tpm20.c tpm_tis_core.c 17c2e9c5bbSJustin Hibbits.if defined(${OPT_FDT}) 18c2e9c5bbSJustin HibbitsSRCS+= tpm_spibus.c tpm_tis_spibus.c spibus_if.h 19c2e9c5bbSJustin Hibbits.endif 20c2e9c5bbSJustin Hibbits.if ${MACHINE_ARCH:Namd64:Ni386:Narm64} == "" 21c2e9c5bbSJustin HibbitsSRCS+= acpi_if.h 22c2e9c5bbSJustin HibbitsSRCS+= tpm_tis_acpi.c 23c2e9c5bbSJustin HibbitsSRCS+= tpm_crb.c 2462adeb92SJustin HibbitsSRCS+= tpm_bus.c 25*6a467c78SWarner LoshCFLAGS+=-DDEV_ACPI 26c2e9c5bbSJustin Hibbits.endif 2797f24f66STakanori Watanabe 2897f24f66STakanori Watanabe.include <bsd.kmod.mk> 29