2018-04-05 23:14:51 +08:00
|
|
|
if(CONFIG_NET_L2_BT OR
|
2017-12-05 18:11:29 +08:00
|
|
|
CONFIG_NET_L2_BT_SHELL OR
|
2017-12-04 18:17:39 +08:00
|
|
|
CONFIG_NET_L2_DUMMY OR
|
|
|
|
CONFIG_NET_L2_WIFI_MGMT)
|
2017-12-05 18:11:29 +08:00
|
|
|
|
|
|
|
zephyr_library()
|
2018-06-27 18:57:26 +08:00
|
|
|
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip)
|
2017-12-05 18:11:29 +08:00
|
|
|
zephyr_library_compile_definitions_ifdef(
|
|
|
|
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_BT bluetooth.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_BT_SHELL bluetooth_shell.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_DUMMY dummy.c)
|
2017-12-04 18:17:39 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_WIFI_MGMT wifi_mgmt.c)
|
2018-03-20 05:14:48 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_WIFI_SHELL wifi_shell.c)
|
2017-12-05 18:11:29 +08:00
|
|
|
|
|
|
|
endif()
|
|
|
|
|
2018-04-05 23:14:51 +08:00
|
|
|
if(CONFIG_NET_L2_ETHERNET)
|
|
|
|
add_subdirectory(ethernet)
|
|
|
|
endif()
|
|
|
|
|
2017-12-05 18:11:29 +08:00
|
|
|
if(CONFIG_NET_L2_IEEE802154)
|
|
|
|
add_subdirectory(ieee802154)
|
|
|
|
endif()
|
2018-01-15 18:42:28 +08:00
|
|
|
|
|
|
|
if(CONFIG_NET_L2_OPENTHREAD)
|
|
|
|
add_subdirectory(openthread)
|
|
|
|
endif()
|