aboutsummaryrefslogtreecommitdiff
path: root/hw/tpm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-01-23 14:56:07 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-07 21:45:53 +0100
commit7aaa6a163739b612666123cafa7dea25b3d672c8 (patch)
tree78ae48392475dc934b881b2138431de4c85183a5 /hw/tpm
parentb42075bb77672616127c9452c0f836e757e9ce1a (diff)
downloadqemu-7aaa6a163739b612666123cafa7dea25b3d672c8.zip
qemu-7aaa6a163739b612666123cafa7dea25b3d672c8.tar.gz
qemu-7aaa6a163739b612666123cafa7dea25b3d672c8.tar.bz2
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')
-rw-r--r--hw/tpm/Kconfig10
1 files changed, 9 insertions, 1 deletions
diff --git a/hw/tpm/Kconfig b/hw/tpm/Kconfig
index f654f0f..4c8ee87 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