xref: /openbmc/qemu/hw/net/meson.build (revision b1419fa665584e493257475af2618443bd834e47)
1*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_DP8393X', if_true: files('dp8393x.c'))
2*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_XEN', if_true: files('xen_nic.c'))
3*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_NE2000_COMMON', if_true: files('ne2000.c'))
4*b1419fa6SMarc-André Lureau
5*b1419fa6SMarc-André Lureau# PCI network cards
6*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_NE2000_PCI', if_true: files('ne2000-pci.c'))
7*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_EEPRO100_PCI', if_true: files('eepro100.c'))
8*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_PCNET_PCI', if_true: files('pcnet-pci.c'))
9*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_PCNET_COMMON', if_true: files('pcnet.c'))
10*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_E1000_PCI', if_true: files('e1000.c', 'e1000x_common.c'))
11*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_E1000E_PCI_EXPRESS', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c'))
12*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_E1000E_PCI_EXPRESS', if_true: files('e1000e.c', 'e1000e_core.c', 'e1000x_common.c'))
13*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_RTL8139_PCI', if_true: files('rtl8139.c'))
14*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_TULIP', if_true: files('tulip.c'))
15*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_VMXNET3_PCI', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c'))
16*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_VMXNET3_PCI', if_true: files('vmxnet3.c'))
17*b1419fa6SMarc-André Lureau
18*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_SMC91C111', if_true: files('smc91c111.c'))
19*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_LAN9118', if_true: files('lan9118.c'))
20*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_NE2000_ISA', if_true: files('ne2000-isa.c'))
21*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_OPENCORES_ETH', if_true: files('opencores_eth.c'))
22*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_XGMAC', if_true: files('xgmac.c'))
23*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MIPSNET', if_true: files('mipsnet.c'))
24*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('xilinx_axienet.c'))
25*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALLWINNER_EMAC', if_true: files('allwinner_emac.c'))
26*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALLWINNER_SUN8I_EMAC', if_true: files('allwinner-sun8i-emac.c'))
27*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_IMX_FEC', if_true: files('imx_fec.c'))
28*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-emac.c'))
29*b1419fa6SMarc-André Lureau
30*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_CADENCE', if_true: files('cadence_gem.c'))
31*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_STELLARIS_ENET', if_true: files('stellaris_enet.c'))
32*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_LANCE', if_true: files('lance.c'))
33*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_LASI_I82596', if_true: files('lasi_i82596.c'))
34*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_I82596_COMMON', if_true: files('i82596.c'))
35*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_SUNHME', if_true: files('sunhme.c'))
36*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_FTGMAC100', if_true: files('ftgmac100.c'))
37*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_SUNGEM', if_true: files('sungem.c'))
38*b1419fa6SMarc-André Lureau
39*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_eth.c'))
40*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_COLDFIRE', if_true: files('mcf_fec.c'))
41*b1419fa6SMarc-André Lureauspecific_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-minimac2.c'))
42*b1419fa6SMarc-André Lureauspecific_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr_llan.c'))
43*b1419fa6SMarc-André Lureauspecific_ss.add(when: 'CONFIG_XILINX_ETHLITE', if_true: files('xilinx_ethlite.c'))
44*b1419fa6SMarc-André Lureau
45*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('net_rx_pkt.c'))
46*b1419fa6SMarc-André Lureauspecific_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net.c'))
47*b1419fa6SMarc-André Lureau
48*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: ['CONFIG_VIRTIO_NET', 'CONFIG_VHOST_NET'], if_true: files('vhost_net.c'), if_false: files('vhost_net-stub.c'))
49*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost_net-stub.c'))
50*b1419fa6SMarc-André Lureau
51*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ETSEC', if_true: files(
52*b1419fa6SMarc-André Lureau  'fsl_etsec/etsec.c',
53*b1419fa6SMarc-André Lureau  'fsl_etsec/miim.c',
54*b1419fa6SMarc-André Lureau  'fsl_etsec/registers.c',
55*b1419fa6SMarc-André Lureau  'fsl_etsec/rings.c',
56*b1419fa6SMarc-André Lureau))
57*b1419fa6SMarc-André Lureau
58*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ROCKER', if_true: files(
59*b1419fa6SMarc-André Lureau  'rocker/rocker.c',
60*b1419fa6SMarc-André Lureau  'rocker/rocker_desc.c',
61*b1419fa6SMarc-André Lureau  'rocker/rocker_fp.c',
62*b1419fa6SMarc-André Lureau  'rocker/rocker_of_dpa.c',
63*b1419fa6SMarc-André Lureau  'rocker/rocker_world.c',
64*b1419fa6SMarc-André Lureau), if_false: files('rocker/qmp-norocker.c'))
65*b1419fa6SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALL', if_true: files('rocker/qmp-norocker.c'))
66*b1419fa6SMarc-André Lureau
67*b1419fa6SMarc-André Lureausubdir('can')
68