2019-03-26 23:26:25 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_include_directories(. ${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
zephyr_library_compile_definitions_ifdef(
|
|
|
|
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP
|
|
|
|
ppp_l2.c
|
|
|
|
fsm.c
|
|
|
|
lcp.c
|
|
|
|
options.c
|
|
|
|
link.c
|
|
|
|
network.c
|
|
|
|
misc.c)
|
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS_PPP ppp_stats.c)
|
|
|
|
|
2020-01-17 23:05:23 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP_MGMT ppp_mgmt.c)
|
|
|
|
|
2019-03-26 23:26:25 +08:00
|
|
|
if(CONFIG_NET_IPV4)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP ipcp.c)
|
|
|
|
endif()
|
2019-05-14 22:40:21 +08:00
|
|
|
|
|
|
|
if(CONFIG_NET_IPV6)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP ipv6cp.c)
|
|
|
|
endif()
|
2020-08-13 04:09:43 +08:00
|
|
|
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP_PAP pap.c)
|