2018-04-05 23:14:51 +08:00
|
|
|
zephyr_library()
|
2018-06-27 18:57:26 +08:00
|
|
|
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip)
|
2018-04-05 23:14:51 +08:00
|
|
|
zephyr_library_compile_definitions_ifdef(
|
|
|
|
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
|
|
|
)
|
|
|
|
|
2018-04-06 22:41:04 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_ARP arp.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_ETHERNET ethernet.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_ETHERNET_MGMT ethernet_mgmt.c)
|
2018-03-28 21:59:45 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS_ETHERNET ethernet_stats.c)
|
2018-01-24 20:33:35 +08:00
|
|
|
|
|
|
|
if(CONFIG_NET_GPTP)
|
|
|
|
add_subdirectory(gptp)
|
|
|
|
endif()
|
2017-04-06 08:17:12 +08:00
|
|
|
|
|
|
|
if(CONFIG_NET_LLDP)
|
|
|
|
add_subdirectory(lldp)
|
|
|
|
endif()
|