Paolo Bonzini 7c28b925b7 build: convert pci.mak to Kconfig
Instead of including the same list of devices for each target,
set CONFIG_PCI to true, and make the devices default to present
whenever PCI is available.  However, s390x does not want all the
PCI devices, so there is a separate symbol to enable them.

Done mostly with the following script:

  while read i; do
     i=${i%=y}; i=${i#CONFIG_}
     sed -i -e'/^config '$i'$/!b' -en \
            -e'a\' -e'    default y if PCI_DEVICES\' -e'    depends on PCI' \
          `grep -lw $i hw/*/Kconfig`
  done < default-configs/pci.mak

followed by replacing a few "depends on" clauses with "select"
whenever the symbol is not really related to PCI.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190123065618.3520-31-yang.zhong@intel.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-03-07 21:45:53 +01:00

101 lines
999 B
Plaintext

config APPLESMC
bool
config MAX111X
bool
config TMP105
bool
config TMP421
bool
config ISA_DEBUG
bool
config SGA
bool
config ISA_TESTDEV
bool
config PCI_TESTDEV
bool
default y if TEST_DEVICES
depends on PCI
config EDU
bool
default y if TEST_DEVICES
depends on PCI
config PCA9552
bool
config PL310
bool
config INTEGRATOR_DEBUG
bool
config A9SCU
bool
config ARM11SCU
bool
config MOS6522
bool
config MACIO
bool
config IVSHMEM_DEVICE
bool
default y if PCI_DEVICES
depends on PCI && LINUX && IVSHMEM
config ECCMEMCTL
bool
config IMX
bool
config STM32F2XX_SYSCFG
bool
config MIPS_ITU
bool
config MPS2_FPGAIO
bool
config MPS2_SCC
bool
config TZ_MPC
bool
config TZ_MSC
bool
config TZ_PPC
bool
config IOTKIT_SECCTL
bool
config IOTKIT_SYSCTL
bool
config IOTKIT_SYSINFO
bool
config PVPANIC
bool
config AUX
bool
source macio/Kconfig