Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 1 | system_ss.add(when: 'CONFIG_DP8393X', if_true: files('dp8393x.c')) |
| 2 | system_ss.add(when: 'CONFIG_XEN', if_true: files('xen_nic.c')) |
| 3 | system_ss.add(when: 'CONFIG_NE2000_COMMON', if_true: files('ne2000.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 4 | |
| 5 | # PCI network cards |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 6 | system_ss.add(when: 'CONFIG_NE2000_PCI', if_true: files('ne2000-pci.c')) |
| 7 | system_ss.add(when: 'CONFIG_EEPRO100_PCI', if_true: files('eepro100.c')) |
| 8 | system_ss.add(when: 'CONFIG_PCNET_PCI', if_true: files('pcnet-pci.c')) |
| 9 | system_ss.add(when: 'CONFIG_PCNET_COMMON', if_true: files('pcnet.c')) |
| 10 | system_ss.add(when: 'CONFIG_E1000_PCI', if_true: files('e1000.c', 'e1000x_common.c')) |
| 11 | system_ss.add(when: 'CONFIG_E1000E_PCI_EXPRESS', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c')) |
| 12 | system_ss.add(when: 'CONFIG_E1000E_PCI_EXPRESS', if_true: files('e1000e.c', 'e1000e_core.c', 'e1000x_common.c')) |
| 13 | system_ss.add(when: 'CONFIG_IGB_PCI_EXPRESS', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c')) |
| 14 | system_ss.add(when: 'CONFIG_IGB_PCI_EXPRESS', if_true: files('igb.c', 'igbvf.c', 'igb_core.c')) |
| 15 | system_ss.add(when: 'CONFIG_RTL8139_PCI', if_true: files('rtl8139.c')) |
| 16 | system_ss.add(when: 'CONFIG_TULIP', if_true: files('tulip.c')) |
| 17 | system_ss.add(when: 'CONFIG_VMXNET3_PCI', if_true: files('net_tx_pkt.c', 'net_rx_pkt.c')) |
| 18 | system_ss.add(when: 'CONFIG_VMXNET3_PCI', if_true: files('vmxnet3.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 19 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 20 | system_ss.add(when: 'CONFIG_SMC91C111', if_true: files('smc91c111.c')) |
| 21 | system_ss.add(when: 'CONFIG_LAN9118', if_true: files('lan9118.c')) |
| 22 | system_ss.add(when: 'CONFIG_NE2000_ISA', if_true: files('ne2000-isa.c')) |
| 23 | system_ss.add(when: 'CONFIG_OPENCORES_ETH', if_true: files('opencores_eth.c')) |
| 24 | system_ss.add(when: 'CONFIG_XGMAC', if_true: files('xgmac.c')) |
| 25 | system_ss.add(when: 'CONFIG_MIPSNET', if_true: files('mipsnet.c')) |
| 26 | system_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('xilinx_axienet.c')) |
| 27 | system_ss.add(when: 'CONFIG_ALLWINNER_EMAC', if_true: files('allwinner_emac.c')) |
| 28 | system_ss.add(when: 'CONFIG_ALLWINNER_SUN8I_EMAC', if_true: files('allwinner-sun8i-emac.c')) |
| 29 | system_ss.add(when: 'CONFIG_IMX_FEC', if_true: files('imx_fec.c')) |
| 30 | system_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-emac.c')) |
| 31 | system_ss.add(when: 'CONFIG_MARVELL_88W8618', if_true: files('mv88w8618_eth.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 32 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 33 | system_ss.add(when: 'CONFIG_CADENCE', if_true: files('cadence_gem.c')) |
| 34 | system_ss.add(when: 'CONFIG_STELLARIS_ENET', if_true: files('stellaris_enet.c')) |
| 35 | system_ss.add(when: 'CONFIG_LANCE', if_true: files('lance.c')) |
| 36 | system_ss.add(when: 'CONFIG_LASI_I82596', if_true: files('lasi_i82596.c')) |
| 37 | system_ss.add(when: 'CONFIG_I82596_COMMON', if_true: files('i82596.c')) |
| 38 | system_ss.add(when: 'CONFIG_SUNHME', if_true: files('sunhme.c')) |
| 39 | system_ss.add(when: 'CONFIG_FTGMAC100', if_true: files('ftgmac100.c')) |
| 40 | system_ss.add(when: 'CONFIG_SUNGEM', if_true: files('sungem.c')) |
| 41 | system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_emc.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 42 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 43 | system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_eth.c')) |
| 44 | system_ss.add(when: 'CONFIG_COLDFIRE', if_true: files('mcf_fec.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 45 | specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr_llan.c')) |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 46 | system_ss.add(when: 'CONFIG_XILINX_ETHLITE', if_true: files('xilinx_ethlite.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 47 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 48 | system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('net_rx_pkt.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 49 | specific_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net.c')) |
| 50 | |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 51 | if have_vhost_net |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 52 | system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'), if_false: files('vhost_net-stub.c')) |
| 53 | system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost_net-stub.c')) |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 54 | else |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 55 | system_ss.add(files('vhost_net-stub.c')) |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 56 | endif |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 57 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 58 | system_ss.add(when: 'CONFIG_ETSEC', if_true: files( |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 59 | 'fsl_etsec/etsec.c', |
| 60 | 'fsl_etsec/miim.c', |
| 61 | 'fsl_etsec/registers.c', |
| 62 | 'fsl_etsec/rings.c', |
| 63 | )) |
| 64 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 65 | system_ss.add(when: 'CONFIG_ROCKER', if_true: files( |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 66 | 'rocker/rocker.c', |
| 67 | 'rocker/rocker_desc.c', |
| 68 | 'rocker/rocker_fp.c', |
| 69 | 'rocker/rocker_of_dpa.c', |
| 70 | 'rocker/rocker_world.c', |
| 71 | ), if_false: files('rocker/qmp-norocker.c')) |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 72 | system_ss.add(when: 'CONFIG_ALL', if_true: files('rocker/qmp-norocker.c')) |
| 73 | system_ss.add(files('rocker/rocker-hmp-cmds.c')) |
Marc-André Lureau | b1419fa | 2019-08-16 17:48:00 +0400 | [diff] [blame] | 74 | |
| 75 | subdir('can') |