]> git.proxmox.com Git - mirror_qemu.git/commit - default-configs/arm-softmmu.mak
build: convert pci.mak to Kconfig
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 Jan 2019 06:56:04 +0000 (14:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Mar 2019 20:45:53 +0000 (21:45 +0100)
commit7c28b925b7e176b4e44ed05d23cf883561000546
treef4f502446ce568b0b7e0b2d8296dc1120445fa82
parente9947d18df97e6c6584f020cf9cc995404cc8061
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>
30 files changed:
default-configs/alpha-softmmu.mak
default-configs/arm-softmmu.mak
default-configs/hppa-softmmu.mak
default-configs/i386-softmmu.mak
default-configs/mips-softmmu-common.mak
default-configs/mips64el-softmmu.mak
default-configs/pci.mak [deleted file]
default-configs/ppc-softmmu.mak
default-configs/riscv32-softmmu.mak
default-configs/riscv64-softmmu.mak
default-configs/sh4-softmmu.mak
default-configs/sh4eb-softmmu.mak
default-configs/sparc64-softmmu.mak
docs/devel/build-system.txt
hw/audio/Kconfig
hw/block/Kconfig
hw/char/Kconfig
hw/display/Kconfig
hw/ide/Kconfig
hw/ipack/Kconfig
hw/misc/Kconfig
hw/net/Kconfig
hw/pci-bridge/Kconfig
hw/pci-host/Kconfig
hw/pci/Kconfig
hw/scsi/Kconfig
hw/sd/Kconfig
hw/usb/Kconfig
hw/virtio/Kconfig
hw/watchdog/Kconfig