2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-04 23:43:21 +02:00
|
|
|
zephyr_library()
|
2023-09-01 12:47:54 +02:00
|
|
|
zephyr_library_property(ALLOW_EMPTY TRUE)
|
2024-03-11 15:14:05 +01:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/l2)
|
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_DRIVER_RAW_MODE
|
|
|
|
eth_raw.c
|
|
|
|
)
|
2018-03-28 16:05:01 +02:00
|
|
|
|
2021-08-04 23:43:21 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_GECKO
|
2019-11-29 21:34:31 +01:00
|
|
|
eth_gecko.c
|
|
|
|
phy_gecko.c
|
|
|
|
)
|
|
|
|
|
2021-08-04 23:43:21 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_XLNX_GEM
|
2021-05-17 16:05:57 +02:00
|
|
|
eth_xlnx_gem.c
|
|
|
|
phy_xlnx_gem.c
|
|
|
|
)
|
|
|
|
|
2021-09-08 05:56:31 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_DWMAC eth_dwmac.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_DWMAC_STM32H7X eth_dwmac_stm32h7x.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_DWMAC_MMU eth_dwmac_mmu.c)
|
|
|
|
|
2021-08-04 23:43:21 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_E1000 eth_e1000.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_ENC28J60 eth_enc28j60.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_ENC424J600 eth_enc424j600.c)
|
2022-09-20 09:52:18 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_ESP32 eth_esp32.c)
|
2021-08-04 23:43:21 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_DSA_KSZ8XXX dsa_ksz8xxx.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_LITEETH eth_liteeth.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_SMSC911X eth_smsc911x.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_STELLARIS eth_stellaris.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_STM32_HAL eth_stm32_hal.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_W5500 eth_w5500.c)
|
2021-05-03 03:07:36 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_SAM_GMAC eth_sam_gmac.c)
|
2022-08-22 12:13:54 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_CYCLONEV eth_cyclonev.c)
|
drivers: net: Move Ethernet device definition for SLIP to ethernet
Currently, if CONFIG_SLIP_TAP is enabled (default for QEMU), and no
other Ethernet driver is enabled, the following warning is printed by
CMake:
No SOURCES given to Zephyr library: drivers__ethernet
This happens because SLIP_TAP enabled Ethernet L2, but has no actual
sources in drivers/ethernet. This commit fixes this, by moving the
actual definition of the SLIP TAP Ethernet interface into a separate
file, within drivers/ethernet. Technically, in that configuration SLIP
defines a Ethernet device, implementing Ethernet API, so such a change
is justifiable, and prevents unwanted warning from being generated.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-02-17 14:32:21 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_SLIP_TAP eth_slip_tap.c)
|
2023-02-09 08:25:32 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_SMSC91X eth_smsc91x.c)
|
2023-04-30 04:39:34 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_IVSHMEM eth_ivshmem.c eth_ivshmem_queue.c)
|
2023-05-12 14:49:53 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_ADIN2111 eth_adin2111.c)
|
2023-10-06 16:59:42 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_LAN865X eth_lan865x.c oa_tc6.c)
|
2023-12-19 15:56:37 +01:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_XMC4XXX eth_xmc4xxx.c)
|
2018-09-25 16:52:27 +02:00
|
|
|
|
2022-11-29 03:51:34 +01:00
|
|
|
if(CONFIG_ETH_NXP_S32_NETC)
|
|
|
|
zephyr_library_sources(eth_nxp_s32_netc.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_DT_HAS_NXP_S32_NETC_PSI_ENABLED eth_nxp_s32_netc_psi.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_DT_HAS_NXP_S32_NETC_VSI_ENABLED eth_nxp_s32_netc_vsi.c)
|
|
|
|
endif()
|
|
|
|
|
2023-07-07 19:07:09 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_NXP_S32_GMAC eth_nxp_s32_gmac.c)
|
2023-10-25 13:39:30 +02:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_NUMAKER eth_numaker.c)
|
2023-07-07 19:07:09 +02:00
|
|
|
|
2018-09-25 16:52:27 +02:00
|
|
|
if(CONFIG_ETH_NATIVE_POSIX)
|
2023-10-03 13:58:25 +02:00
|
|
|
if (CONFIG_NATIVE_APPLICATION)
|
2023-11-10 15:26:09 +01:00
|
|
|
set(native_posix_source_files eth_native_posix.c eth_native_posix_adapt.c)
|
|
|
|
set_source_files_properties(${native_posix_source_files}
|
|
|
|
PROPERTIES COMPILE_DEFINITIONS
|
|
|
|
"NO_POSIX_CHEATS;_BSD_SOURCE;_DEFAULT_SOURCE"
|
|
|
|
)
|
2023-10-03 13:58:25 +02:00
|
|
|
zephyr_library_sources(${native_posix_source_files})
|
|
|
|
else()
|
|
|
|
zephyr_library_sources(eth_native_posix.c)
|
|
|
|
target_sources(native_simulator INTERFACE eth_native_posix_adapt.c)
|
|
|
|
endif()
|
2018-09-25 16:52:27 +02:00
|
|
|
endif()
|
2021-05-03 03:06:30 +02:00
|
|
|
|
|
|
|
add_subdirectory(phy)
|
2024-03-01 21:33:38 +01:00
|
|
|
add_subdirectory(eth_nxp_enet_qos)
|
2024-03-18 23:59:29 +01:00
|
|
|
add_subdirectory(nxp_enet)
|