summaryrefslogtreecommitdiffstats
path: root/hw/tpm/Kconfig
diff options
context:
space:
mode:
authorPaolo Bonzini2019-01-23 07:56:07 +0100
committerPaolo Bonzini2019-03-07 21:45:53 +0100
commit7aaa6a163739b612666123cafa7dea25b3d672c8 (patch)
tree78ae48392475dc934b881b2138431de4c85183a5 /hw/tpm/Kconfig
parentvirtio: express virtio dependencies with Kconfig (diff)
downloadqemu-7aaa6a163739b612666123cafa7dea25b3d672c8.tar.gz
qemu-7aaa6a163739b612666123cafa7dea25b3d672c8.tar.xz
qemu-7aaa6a163739b612666123cafa7dea25b3d672c8.zip
tpm: express dependencies with Kconfig
This automatically removes the TPM backends from the binary altogether if no front-ends are selected. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/tpm/Kconfig')
-rw-r--r--hw/tpm/Kconfig10
1 files changed, 9 insertions, 1 deletions
diff --git a/hw/tpm/Kconfig b/hw/tpm/Kconfig
index f654f0fbce..4c8ee87d67 100644
--- a/hw/tpm/Kconfig
+++ b/hw/tpm/Kconfig
@@ -1,16 +1,24 @@
-config TPM
+config TPMDEV
bool
+ depends on TPM
config TPM_TIS
bool
depends on TPM && ISA_BUS
+ select TPMDEV
config TPM_CRB
bool
depends on TPM && PC
+ select TPMDEV
config TPM_PASSTHROUGH
bool
+ default y
+ # FIXME: should check for x86 host as well
+ depends on TPMDEV && LINUX
config TPM_EMULATOR
bool
+ default y
+ depends on TPMDEV