qemu-e2k/hw
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
..
9pfs build: switch to Kconfig 2019-03-07 21:45:53 +01:00
acpi kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
adc kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
alpha kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
arm build: switch to Kconfig 2019-03-07 21:45:53 +01:00
audio build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
block build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
bt kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
char build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
core kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
cpu kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
cris kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
display build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
dma kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
gpio kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
hppa kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
hyperv kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
i2c kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
i386 build: switch to Kconfig 2019-03-07 21:45:53 +01:00
ide build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
input build: switch to Kconfig 2019-03-07 21:45:53 +01:00
intc build: switch to Kconfig 2019-03-07 21:45:53 +01:00
ipack build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
ipmi kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
isa kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
lm32 kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
m68k kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
mem kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
microblaze kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
mips kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
misc build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
moxie kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
net build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
nios2 kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
nvram kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
openrisc kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
pci build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
pci-bridge build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
pci-host build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
pcmcia kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
ppc build: switch to Kconfig 2019-03-07 21:45:53 +01:00
rdma hw/rdma: modify struct initialization 2019-01-19 11:01:33 +02:00
riscv kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
s390x kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
scsi build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
sd build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
sh4 kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
smbios kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
sparc kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
sparc64 kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
ssi kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
timer kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
tpm build: switch to Kconfig 2019-03-07 21:45:53 +01:00
tricore kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
unicore32 kconfig: introduce kconfig files 2019-03-07 21:45:53 +01:00
usb build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
vfio build: switch to Kconfig 2019-03-07 21:45:53 +01:00
virtio build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
watchdog build: convert pci.mak to Kconfig 2019-03-07 21:45:53 +01:00
xen xen: fix xen-bus state model to allow frontend re-connection 2019-02-04 11:04:49 +00:00
xenpv xen: Replace few mentions of xend by libxl 2019-01-14 13:45:40 +00:00
xtensa build: switch to Kconfig 2019-03-07 21:45:53 +01:00
Kconfig kconfig: introduce CONFIG_TEST_DEVICES 2019-03-07 21:45:53 +01:00
Makefile.objs 9pfs: remove unnecessary conditionals 2019-03-07 21:45:53 +01:00