hw/mem/nvdimm: Use Kconfig 'imply' instead of 'depends on'

Per the kconfig.rst:

  A device should be listed [...] ``imply`` if (depending on
  the QEMU command line) the board may or  may not be started
  without it.

This is the case with the NVDIMM device, so use the 'imply'
weak reverse dependency to select the symbol.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210511155354.3069141-2-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2021-05-11 17:53:50 +02:00 committed by Paolo Bonzini
parent 2d652f24cc
commit cfa1f4bcee
5 changed files with 3 additions and 3 deletions

View File

@ -8,4 +8,3 @@ CONFIG_POWERNV=y
# For pSeries # For pSeries
CONFIG_PSERIES=y CONFIG_PSERIES=y
CONFIG_NVDIMM=y

View File

@ -6,6 +6,7 @@ config ARM_VIRT
imply VFIO_PLATFORM imply VFIO_PLATFORM
imply VFIO_XGMAC imply VFIO_XGMAC
imply TPM_TIS_SYSBUS imply TPM_TIS_SYSBUS
imply NVDIMM
select ARM_GIC select ARM_GIC
select ACPI select ACPI
select ARM_SMMUV3 select ARM_SMMUV3

View File

@ -23,6 +23,7 @@ config PC
imply TPM_TIS_ISA imply TPM_TIS_ISA
imply VGA_PCI imply VGA_PCI
imply VIRTIO_VGA imply VIRTIO_VGA
imply NVDIMM
select FDC select FDC
select I8259 select I8259
select I8254 select I8254

View File

@ -7,6 +7,4 @@ config MEM_DEVICE
config NVDIMM config NVDIMM
bool bool
default y
depends on (PC || PSERIES || ARM_VIRT)
select MEM_DEVICE select MEM_DEVICE

View File

@ -3,6 +3,7 @@ config PSERIES
imply PCI_DEVICES imply PCI_DEVICES
imply TEST_DEVICES imply TEST_DEVICES
imply VIRTIO_VGA imply VIRTIO_VGA
imply NVDIMM
select DIMM select DIMM
select PCI select PCI
select SPAPR_VSCSI select SPAPR_VSCSI