mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
meson: convert hw/net
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
19233c978a
commit
b1419fa665
@ -18,7 +18,6 @@ devices-dirs-$(CONFIG_IPACK) += ipack/
|
||||
devices-dirs-$(CONFIG_IPMI) += ipmi/
|
||||
devices-dirs-y += isa/
|
||||
devices-dirs-y += misc/
|
||||
devices-dirs-y += net/
|
||||
endif
|
||||
|
||||
common-obj-y += $(devices-dirs-y)
|
||||
|
@ -1,5 +1,6 @@
|
||||
subdir('core')
|
||||
subdir('mem')
|
||||
subdir('net')
|
||||
subdir('nubus')
|
||||
subdir('nvram')
|
||||
subdir('pci')
|
||||
|
@ -1,59 +0,0 @@
|
||||
common-obj-$(CONFIG_DP8393X) += dp8393x.o
|
||||
common-obj-$(CONFIG_XEN) += xen_nic.o
|
||||
common-obj-$(CONFIG_NE2000_COMMON) += ne2000.o
|
||||
|
||||
# PCI network cards
|
||||
common-obj-$(CONFIG_NE2000_PCI) += ne2000-pci.o
|
||||
common-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
|
||||
common-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
|
||||
common-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
|
||||
common-obj-$(CONFIG_E1000_PCI) += e1000.o e1000x_common.o
|
||||
common-obj-$(CONFIG_E1000E_PCI_EXPRESS) += net_tx_pkt.o net_rx_pkt.o
|
||||
common-obj-$(CONFIG_E1000E_PCI_EXPRESS) += e1000e.o e1000e_core.o e1000x_common.o
|
||||
common-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
|
||||
common-obj-$(CONFIG_VMXNET3_PCI) += net_tx_pkt.o net_rx_pkt.o
|
||||
common-obj-$(CONFIG_VMXNET3_PCI) += vmxnet3.o
|
||||
common-obj-$(CONFIG_TULIP) += tulip.o
|
||||
|
||||
common-obj-$(CONFIG_SMC91C111) += smc91c111.o
|
||||
common-obj-$(CONFIG_LAN9118) += lan9118.o
|
||||
common-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
|
||||
common-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
|
||||
common-obj-$(CONFIG_XGMAC) += xgmac.o
|
||||
common-obj-$(CONFIG_MIPSNET) += mipsnet.o
|
||||
common-obj-$(CONFIG_XILINX_AXI) += xilinx_axienet.o
|
||||
common-obj-$(CONFIG_ALLWINNER_EMAC) += allwinner_emac.o
|
||||
common-obj-$(CONFIG_ALLWINNER_SUN8I_EMAC) += allwinner-sun8i-emac.o
|
||||
common-obj-$(CONFIG_IMX_FEC) += imx_fec.o
|
||||
|
||||
common-obj-$(CONFIG_CADENCE) += cadence_gem.o
|
||||
common-obj-$(CONFIG_STELLARIS_ENET) += stellaris_enet.o
|
||||
common-obj-$(CONFIG_LANCE) += lance.o
|
||||
common-obj-$(CONFIG_LASI_82596) += lasi_i82596.o
|
||||
common-obj-$(CONFIG_I82596_COMMON) += i82596.o
|
||||
common-obj-$(CONFIG_SUNHME) += sunhme.o
|
||||
common-obj-$(CONFIG_FTGMAC100) += ftgmac100.o
|
||||
common-obj-$(CONFIG_SUNGEM) += sungem.o
|
||||
|
||||
common-obj-$(CONFIG_ETRAXFS) += etraxfs_eth.o
|
||||
common-obj-$(CONFIG_COLDFIRE) += mcf_fec.o
|
||||
obj-$(CONFIG_MILKYMIST) += milkymist-minimac2.o
|
||||
obj-$(CONFIG_PSERIES) += spapr_llan.o
|
||||
obj-$(CONFIG_XILINX_ETHLITE) += xilinx_ethlite.o
|
||||
|
||||
common-obj-$(CONFIG_VIRTIO_NET) += net_rx_pkt.o
|
||||
obj-$(CONFIG_VIRTIO_NET) += virtio-net.o
|
||||
common-obj-$(call land,$(CONFIG_VIRTIO_NET),$(CONFIG_VHOST_NET)) += vhost_net.o
|
||||
common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO_NET),$(CONFIG_VHOST_NET))) += vhost_net-stub.o
|
||||
common-obj-$(CONFIG_ALL) += vhost_net-stub.o
|
||||
|
||||
common-obj-$(CONFIG_ETSEC) += fsl_etsec/etsec.o fsl_etsec/registers.o \
|
||||
fsl_etsec/rings.o fsl_etsec/miim.o
|
||||
|
||||
common-obj-$(CONFIG_ROCKER) += rocker/rocker.o rocker/rocker_fp.o \
|
||||
rocker/rocker_desc.o rocker/rocker_world.o \
|
||||
rocker/rocker_of_dpa.o
|
||||
obj-$(call lnot,$(CONFIG_ROCKER)) += rocker/qmp-norocker.o
|
||||
|
||||
common-obj-$(CONFIG_CAN_BUS) += can/
|
||||
common-obj-$(CONFIG_MSF2) += msf2-emac.o
|
@ -1,4 +0,0 @@
|
||||
common-obj-$(CONFIG_CAN_SJA1000) += can_sja1000.o
|
||||
common-obj-$(CONFIG_CAN_PCI) += can_kvaser_pci.o
|
||||
common-obj-$(CONFIG_CAN_PCI) += can_pcm3680_pci.o
|
||||
common-obj-$(CONFIG_CAN_PCI) += can_mioe3680_pci.o
|
4
hw/net/can/meson.build
Normal file
4
hw/net/can/meson.build
Normal file
@ -0,0 +1,4 @@
|
||||
softmmu_ss.add(when: 'CONFIG_CAN_SJA1000', if_true: files('can_sja1000.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_CAN_PCI', if_true: files('can_kvaser_pci.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_CAN_PCI', if_true: files('can_pcm3680_pci.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_CAN_PCI', if_true: files('can_mioe3680_pci.c'))
|
67
hw/net/meson.build
Normal file
67
hw/net/meson.build
Normal file
@ -0,0 +1,67 @@
|
||||
softmmu_ss.add(when: 'CONFIG_DP8393X', if_true: files('dp8393x.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_XEN', if_true: files('xen_nic.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_NE2000_COMMON', if_true: files('ne2000.c'))
|
||||
|
||||
# PCI network cards
|
||||
softmmu_ss.add(when: 'CONFIG_NE2000_PCI', if_true: files('ne2000-pci.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_EEPRO100_PCI', if_true: files('eepro100.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_PCNET_PCI', if_true: files('pcnet-pci.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_PCNET_COMMON', if_true: files('pcnet.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_E1000_PCI', if_true: files('e1000.c', 'e1000x_common.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_E1000E_PCI_EXPRESS', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_E1000E_PCI_EXPRESS', if_true: files('e1000e.c', 'e1000e_core.c', 'e1000x_common.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_RTL8139_PCI', if_true: files('rtl8139.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_TULIP', if_true: files('tulip.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VMXNET3_PCI', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VMXNET3_PCI', if_true: files('vmxnet3.c'))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_SMC91C111', if_true: files('smc91c111.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_LAN9118', if_true: files('lan9118.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_NE2000_ISA', if_true: files('ne2000-isa.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_OPENCORES_ETH', if_true: files('opencores_eth.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_XGMAC', if_true: files('xgmac.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_MIPSNET', if_true: files('mipsnet.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('xilinx_axienet.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_ALLWINNER_EMAC', if_true: files('allwinner_emac.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_ALLWINNER_SUN8I_EMAC', if_true: files('allwinner-sun8i-emac.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_IMX_FEC', if_true: files('imx_fec.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-emac.c'))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_CADENCE', if_true: files('cadence_gem.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_STELLARIS_ENET', if_true: files('stellaris_enet.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_LANCE', if_true: files('lance.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_LASI_I82596', if_true: files('lasi_i82596.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_I82596_COMMON', if_true: files('i82596.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_SUNHME', if_true: files('sunhme.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_FTGMAC100', if_true: files('ftgmac100.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_SUNGEM', if_true: files('sungem.c'))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_eth.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_COLDFIRE', if_true: files('mcf_fec.c'))
|
||||
specific_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-minimac2.c'))
|
||||
specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr_llan.c'))
|
||||
specific_ss.add(when: 'CONFIG_XILINX_ETHLITE', if_true: files('xilinx_ethlite.c'))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('net_rx_pkt.c'))
|
||||
specific_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net.c'))
|
||||
|
||||
softmmu_ss.add(when: ['CONFIG_VIRTIO_NET', 'CONFIG_VHOST_NET'], if_true: files('vhost_net.c'), if_false: files('vhost_net-stub.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost_net-stub.c'))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_ETSEC', if_true: files(
|
||||
'fsl_etsec/etsec.c',
|
||||
'fsl_etsec/miim.c',
|
||||
'fsl_etsec/registers.c',
|
||||
'fsl_etsec/rings.c',
|
||||
))
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_ROCKER', if_true: files(
|
||||
'rocker/rocker.c',
|
||||
'rocker/rocker_desc.c',
|
||||
'rocker/rocker_fp.c',
|
||||
'rocker/rocker_of_dpa.c',
|
||||
'rocker/rocker_world.c',
|
||||
), if_false: files('rocker/qmp-norocker.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('rocker/qmp-norocker.c'))
|
||||
|
||||
subdir('can')
|
Loading…
Reference in New Issue
Block a user