2018-01-12 02:49:13 +00:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS
|
2018-09-06 12:23:04 +00:00
|
|
|
include/apps
|
2019-03-01 18:12:11 +00:00
|
|
|
include/apps/sntp
|
2018-09-06 12:23:04 +00:00
|
|
|
lwip/src/include
|
|
|
|
port/esp32/include
|
|
|
|
port/esp32/include/arch
|
|
|
|
)
|
|
|
|
|
2018-09-11 01:44:12 +00:00
|
|
|
set(COMPONENT_SRCS "apps/dhcpserver/dhcpserver.c"
|
|
|
|
"apps/ping/esp_ping.c"
|
|
|
|
"apps/ping/ping.c"
|
2019-03-01 18:12:11 +00:00
|
|
|
"apps/sntp/sntp.c"
|
2018-09-11 01:44:12 +00:00
|
|
|
"lwip/src/api/api_lib.c"
|
|
|
|
"lwip/src/api/api_msg.c"
|
|
|
|
"lwip/src/api/err.c"
|
|
|
|
"lwip/src/api/netbuf.c"
|
|
|
|
"lwip/src/api/netdb.c"
|
|
|
|
"lwip/src/api/netifapi.c"
|
|
|
|
"lwip/src/api/sockets.c"
|
|
|
|
"lwip/src/api/tcpip.c"
|
|
|
|
"lwip/src/apps/sntp/sntp.c"
|
|
|
|
"lwip/src/core/def.c"
|
|
|
|
"lwip/src/core/dns.c"
|
|
|
|
"lwip/src/core/inet_chksum.c"
|
|
|
|
"lwip/src/core/init.c"
|
|
|
|
"lwip/src/core/ip.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"lwip/src/core/mem.c"
|
|
|
|
"lwip/src/core/memp.c"
|
|
|
|
"lwip/src/core/netif.c"
|
|
|
|
"lwip/src/core/pbuf.c"
|
|
|
|
"lwip/src/core/raw.c"
|
|
|
|
"lwip/src/core/stats.c"
|
|
|
|
"lwip/src/core/sys.c"
|
|
|
|
"lwip/src/core/tcp.c"
|
|
|
|
"lwip/src/core/tcp_in.c"
|
|
|
|
"lwip/src/core/tcp_out.c"
|
|
|
|
"lwip/src/core/timeouts.c"
|
|
|
|
"lwip/src/core/udp.c"
|
2018-09-11 01:44:12 +00:00
|
|
|
"lwip/src/core/ipv4/autoip.c"
|
|
|
|
"lwip/src/core/ipv4/dhcp.c"
|
|
|
|
"lwip/src/core/ipv4/etharp.c"
|
|
|
|
"lwip/src/core/ipv4/icmp.c"
|
|
|
|
"lwip/src/core/ipv4/igmp.c"
|
|
|
|
"lwip/src/core/ipv4/ip4.c"
|
|
|
|
"lwip/src/core/ipv4/ip4_addr.c"
|
|
|
|
"lwip/src/core/ipv4/ip4_frag.c"
|
|
|
|
"lwip/src/core/ipv6/dhcp6.c"
|
|
|
|
"lwip/src/core/ipv6/ethip6.c"
|
|
|
|
"lwip/src/core/ipv6/icmp6.c"
|
|
|
|
"lwip/src/core/ipv6/inet6.c"
|
|
|
|
"lwip/src/core/ipv6/ip6.c"
|
|
|
|
"lwip/src/core/ipv6/ip6_addr.c"
|
|
|
|
"lwip/src/core/ipv6/ip6_frag.c"
|
|
|
|
"lwip/src/core/ipv6/mld6.c"
|
|
|
|
"lwip/src/core/ipv6/nd6.c"
|
|
|
|
"lwip/src/netif/ethernet.c"
|
|
|
|
"lwip/src/netif/ethernetif.c"
|
|
|
|
"lwip/src/netif/lowpan6.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"lwip/src/netif/slipif.c"
|
2018-09-11 01:44:12 +00:00
|
|
|
"lwip/src/netif/ppp/auth.c"
|
|
|
|
"lwip/src/netif/ppp/ccp.c"
|
|
|
|
"lwip/src/netif/ppp/chap-md5.c"
|
|
|
|
"lwip/src/netif/ppp/chap-new.c"
|
|
|
|
"lwip/src/netif/ppp/chap_ms.c"
|
|
|
|
"lwip/src/netif/ppp/demand.c"
|
|
|
|
"lwip/src/netif/ppp/eap.c"
|
|
|
|
"lwip/src/netif/ppp/ecp.c"
|
|
|
|
"lwip/src/netif/ppp/eui64.c"
|
|
|
|
"lwip/src/netif/ppp/fsm.c"
|
|
|
|
"lwip/src/netif/ppp/ipcp.c"
|
|
|
|
"lwip/src/netif/ppp/ipv6cp.c"
|
|
|
|
"lwip/src/netif/ppp/lcp.c"
|
|
|
|
"lwip/src/netif/ppp/magic.c"
|
|
|
|
"lwip/src/netif/ppp/mppe.c"
|
|
|
|
"lwip/src/netif/ppp/multilink.c"
|
|
|
|
"lwip/src/netif/ppp/ppp.c"
|
|
|
|
"lwip/src/netif/ppp/pppapi.c"
|
|
|
|
"lwip/src/netif/ppp/pppcrypt.c"
|
|
|
|
"lwip/src/netif/ppp/pppoe.c"
|
|
|
|
"lwip/src/netif/ppp/pppol2tp.c"
|
|
|
|
"lwip/src/netif/ppp/pppos.c"
|
|
|
|
"lwip/src/netif/ppp/upap.c"
|
|
|
|
"lwip/src/netif/ppp/utils.c"
|
|
|
|
"lwip/src/netif/ppp/vj.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"port/esp32/vfs_lwip.c"
|
2018-09-11 01:44:12 +00:00
|
|
|
"port/esp32/debug/lwip_debug.c"
|
|
|
|
"port/esp32/freertos/sys_arch.c"
|
2018-11-27 13:35:51 +00:00
|
|
|
"port/esp32/netif/dhcp_state.c"
|
2018-08-28 16:06:14 +00:00
|
|
|
"port/esp32/netif/nettestif.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"port/esp32/netif/wlanif.c")
|
2018-01-12 02:49:13 +00:00
|
|
|
|
2019-04-09 11:34:38 +00:00
|
|
|
if(CONFIG_IDF_TARGET_ESP32)
|
|
|
|
list(APPEND COMPONENT_SRCS "port/esp32/netif/ethernetif.c")
|
|
|
|
endif()
|
|
|
|
|
2019-04-29 12:30:13 +00:00
|
|
|
if(CONFIG_LWIP_PPP_SUPPORT)
|
2018-09-11 01:44:12 +00:00
|
|
|
list(APPEND COMPONENT_SRCS "lwip/src/netif/ppp/auth.c"
|
|
|
|
"lwip/src/netif/ppp/ccp.c"
|
|
|
|
"lwip/src/netif/ppp/chap-md5.c"
|
|
|
|
"lwip/src/netif/ppp/chap-new.c"
|
|
|
|
"lwip/src/netif/ppp/chap_ms.c"
|
|
|
|
"lwip/src/netif/ppp/demand.c"
|
|
|
|
"lwip/src/netif/ppp/eap.c"
|
|
|
|
"lwip/src/netif/ppp/ecp.c"
|
|
|
|
"lwip/src/netif/ppp/eui64.c"
|
|
|
|
"lwip/src/netif/ppp/fsm.c"
|
|
|
|
"lwip/src/netif/ppp/ipcp.c"
|
|
|
|
"lwip/src/netif/ppp/ipv6cp.c"
|
|
|
|
"lwip/src/netif/ppp/lcp.c"
|
|
|
|
"lwip/src/netif/ppp/magic.c"
|
|
|
|
"lwip/src/netif/ppp/mppe.c"
|
|
|
|
"lwip/src/netif/ppp/multilink.c"
|
|
|
|
"lwip/src/netif/ppp/ppp.c"
|
|
|
|
"lwip/src/netif/ppp/pppapi.c"
|
|
|
|
"lwip/src/netif/ppp/pppcrypt.c"
|
|
|
|
"lwip/src/netif/ppp/pppoe.c"
|
|
|
|
"lwip/src/netif/ppp/pppol2tp.c"
|
|
|
|
"lwip/src/netif/ppp/pppos.c"
|
|
|
|
"lwip/src/netif/ppp/upap.c"
|
|
|
|
"lwip/src/netif/ppp/utils.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"lwip/src/netif/ppp/vj.c"
|
|
|
|
"lwip/src/netif/ppp/polarssl/arc4.c"
|
|
|
|
"lwip/src/netif/ppp/polarssl/des.c"
|
|
|
|
"lwip/src/netif/ppp/polarssl/md4.c"
|
|
|
|
"lwip/src/netif/ppp/polarssl/md5.c"
|
|
|
|
"lwip/src/netif/ppp/polarssl/sha1.c")
|
2018-01-12 02:49:13 +00:00
|
|
|
endif()
|
|
|
|
|
2019-05-27 06:29:43 +00:00
|
|
|
set(COMPONENT_REQUIRES vfs esp_wifi ethernet)
|
|
|
|
set(COMPONENT_PRIV_REQUIRES tcpip_adapter nvs_flash)
|
2018-03-22 06:27:10 +00:00
|
|
|
|
2019-02-13 07:57:11 +00:00
|
|
|
set(COMPONENT_ADD_LDFRAGMENTS linker.lf)
|
|
|
|
|
2018-01-12 02:49:13 +00:00
|
|
|
register_component()
|
|
|
|
|
2018-09-06 12:23:04 +00:00
|
|
|
# lots of LWIP source files evaluate macros that check address of stack variables
|
2019-05-10 02:53:08 +00:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-address)
|
2018-09-18 03:44:24 +00:00
|
|
|
|
|
|
|
if(GCC_NOT_5_2_0)
|
|
|
|
set_source_files_properties(
|
|
|
|
lwip/src/netif/ppp/ppp.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-uninitialized
|
|
|
|
)
|
|
|
|
set_source_files_properties(
|
|
|
|
lwip/src/netif/ppp/pppos.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-implicit-fallthrough
|
|
|
|
)
|
|
|
|
endif()
|