This automatically removes the SCSI subsystem from the binary altogether if no controllers are selected.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> Signed-off-by: Yang Zhong <yang.zh...@intel.com> Message-Id: <20190123065618.3520-34-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- 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