[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 26/54] tpm: express dependencies with Kconfig
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 26/54] tpm: express dependencies with Kconfig |
Date: |
Mon, 4 Mar 2019 19:19:46 +0100 |
This automatically removes the SCSI subsystem from the
binary altogether if no controllers are selected.
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Yang Zhong <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/i386/Kconfig | 1 +
hw/tpm/Kconfig | 13 +++++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig
index 9cd24d7..ea72f48 100644
--- a/hw/i386/Kconfig
+++ b/hw/i386/Kconfig
@@ -7,6 +7,7 @@ config PC
imply HYPERV
imply QXL
imply SEV
+ imply TPM_CRB
imply TPM_TIS
select FDC
select I8259
diff --git a/hw/tpm/Kconfig b/hw/tpm/Kconfig
index 5c1ffa7..09adf32 100644
--- a/hw/tpm/Kconfig
+++ b/hw/tpm/Kconfig
@@ -1,14 +1,23 @@
+config TPMDEV
+ bool
+ depends on TPM
+
config TPM_TIS
bool
depends on TPM && ISA_BUS
+ select TPMDEV
config TPM_CRB
bool
- default y
- depends on TPM && PC
+ depends on TPM
+ select TPMDEV
config TPM_PASSTHROUGH
bool
+ default y
+ depends on TPMDEV && LINUX
config TPM_EMULATOR
bool
+ default y
+ depends on TPMDEV
--
1.8.3.1
- Re: [Qemu-devel] [PULL 15/54] build: convert pci.mak to Kconfig, (continued)
- [Qemu-devel] [PULL 18/54] build: convert usb.mak to Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 19/54] i386: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 21/54] ptimer: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 20/54] i2c: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 23/54] hyperv: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 24/54] vfio: express vfio dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 22/54] display: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 25/54] virtio: express virtio dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 26/54] tpm: express dependencies with Kconfig,
Paolo Bonzini <=
- [Qemu-devel] [PULL 27/54] isa: express SuperIO dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 29/54] sd: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 31/54] i386-softmmu.mak: remove all CONFIG_* except boards definitions, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 30/54] ipmi: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 28/54] ssi: express dependencies with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 32/54] ppc64: Express dependencies of 'pseries' and 'powernv' machines with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 33/54] ppc: Express dependencies of the 'prep' and '40p' machines with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 36/54] ppc: Express dependencies of the embedded machines with kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 42/54] microblaze-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04
- [Qemu-devel] [PULL 41/54] m68k-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/03/04