2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-05 05:43:21 +08:00
|
|
|
zephyr_library()
|
2018-03-28 22:05:01 +08:00
|
|
|
|
2021-08-05 05:43:21 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_GECKO
|
2019-11-30 04:34:31 +08:00
|
|
|
eth_gecko.c
|
|
|
|
phy_gecko.c
|
|
|
|
)
|
|
|
|
|
2021-08-05 05:43:21 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_XLNX_GEM
|
2021-05-17 22:05:57 +08:00
|
|
|
eth_xlnx_gem.c
|
|
|
|
phy_xlnx_gem.c
|
|
|
|
)
|
|
|
|
|
2021-09-08 11:56:31 +08: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-05 05:43:21 +08: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)
|
|
|
|
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_MCUX eth_mcux.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 09:07:36 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_ETH_SAM_GMAC eth_sam_gmac.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_DSA_KSZ8XXX dsa_ksz8xxx.c)
|
2018-09-25 22:52:27 +08:00
|
|
|
|
|
|
|
if(CONFIG_ETH_NATIVE_POSIX)
|
2021-09-10 22:57:54 +08: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"
|
|
|
|
)
|
|
|
|
zephyr_library_sources(${native_posix_source_files})
|
2018-09-25 22:52:27 +08:00
|
|
|
endif()
|
2021-05-03 09:06:30 +08:00
|
|
|
|
|
|
|
add_subdirectory(phy)
|