qemu-patch-raspberry4/hw/net/Kconfig
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

116 lines
1.4 KiB
Plaintext

config DP8393X
bool
config NE2000_PCI
bool
default y if PCI_DEVICES
depends on PCI
config EEPRO100_PCI
bool
default y if PCI_DEVICES
depends on PCI
config PCNET_PCI
bool
default y if PCI_DEVICES
depends on PCI
select PCNET_COMMON
config PCNET_COMMON
bool
config E1000_PCI
bool
default y if PCI_DEVICES
depends on PCI
config E1000E_PCI_EXPRESS
bool
default y if PCI_DEVICES
depends on PCI_EXPRESS
config RTL8139_PCI
bool
default y if PCI_DEVICES
depends on PCI
config VMXNET3_PCI
bool
default y if PCI_DEVICES
depends on PCI
config SMC91C111
bool
config LAN9118
bool
config NE2000_ISA
bool
config OPENCORES_ETH
bool
config XGMAC
bool
config MIPSNET
bool
config ALLWINNER_EMAC
bool
config IMX_FEC
bool
config CADENCE
bool
config STELLARIS_ENET
bool
config LANCE
bool
config SUNHME
bool
config FTGMAC100
bool
config SUNGEM
bool
config COLDFIRE
bool
config XILINX_ETHLITE
bool
config VIRTIO_NET
bool
config ETSEC
bool
config ROCKER
bool
default y if PCI_DEVICES
depends on PCI
config CAN_BUS
bool
config CAN_PCI
bool
default y if PCI_DEVICES
depends on PCI
select CAN_BUS
config CAN_SJA1000
bool
default y if PCI_DEVICES
depends on PCI
select CAN_BUS