2018-06-27 18:57:26 +08:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/l2)
|
2018-03-28 22:05:01 +08:00
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_SAM_GMAC
|
|
|
|
eth_sam_gmac.c
|
|
|
|
phy_sam_gmac.c
|
|
|
|
)
|
2018-09-19 17:51:47 +08:00
|
|
|
|
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_STELLARIS eth_stellaris.c)
|
2017-10-27 21:43:34 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_DW eth_dw.c)
|
2018-07-31 17:44:34 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_E1000 eth_e1000.c)
|
2017-10-27 21:43:34 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_ENC28J60 eth_enc28j60.c)
|
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_MCUX eth_mcux.c)
|
2019-01-11 00:52:13 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_SMSC911X eth_smsc911x.c)
|
2017-10-27 21:43:34 +08:00
|
|
|
zephyr_sources_ifdef(CONFIG_ETH_STM32_HAL eth_stm32_hal.c)
|
2018-09-25 22:52:27 +08:00
|
|
|
|
|
|
|
if(CONFIG_ETH_NATIVE_POSIX)
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/l2)
|
|
|
|
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
|
|
|
|
zephyr_library_compile_definitions(_BSD_SOURCE)
|
2018-09-28 04:02:51 +08:00
|
|
|
zephyr_library_compile_definitions(_DEFAULT_SOURCE)
|
2018-09-25 22:52:27 +08:00
|
|
|
zephyr_library_sources(
|
|
|
|
eth_native_posix.c
|
|
|
|
eth_native_posix_adapt.c
|
|
|
|
)
|
|
|
|
endif()
|