2016-08-17 23:08:22 +08:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
2018-09-06 19:43:08 +08:00
|
|
|
COMPONENT_SUBMODULES += lwip
|
2016-08-17 23:08:22 +08:00
|
|
|
|
2017-04-25 17:22:09 +08:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS := \
|
2018-09-06 19:43:08 +08:00
|
|
|
include/apps \
|
2019-03-02 02:12:11 +08:00
|
|
|
include/apps/sntp \
|
2018-09-06 19:43:08 +08:00
|
|
|
lwip/src/include \
|
|
|
|
port/esp32/include \
|
2020-10-22 19:41:15 +02:00
|
|
|
port/esp32/include/arch
|
2017-04-25 17:22:09 +08:00
|
|
|
|
|
|
|
COMPONENT_SRCDIRS := \
|
2018-09-06 19:43:08 +08:00
|
|
|
apps/dhcpserver \
|
|
|
|
apps/ping \
|
2019-03-02 02:12:11 +08:00
|
|
|
apps/sntp \
|
2018-09-06 19:43:08 +08:00
|
|
|
lwip/src/api \
|
|
|
|
lwip/src/apps/sntp \
|
2019-10-14 13:41:46 +08:00
|
|
|
lwip/src/apps/netbiosns \
|
2018-09-06 19:43:08 +08:00
|
|
|
lwip/src/core \
|
|
|
|
lwip/src/core/ipv4 \
|
|
|
|
lwip/src/core/ipv6 \
|
|
|
|
lwip/src/netif \
|
|
|
|
port/esp32 \
|
|
|
|
port/esp32/freertos \
|
2020-10-22 19:41:15 +02:00
|
|
|
port/esp32/hooks \
|
2018-09-06 19:43:08 +08:00
|
|
|
port/esp32/netif \
|
2018-09-06 20:23:20 +08:00
|
|
|
port/esp32/debug
|
2016-08-17 23:08:22 +08:00
|
|
|
|
2019-04-09 19:34:38 +08:00
|
|
|
ifndef CONFIG_IDF_TARGET_ESP32
|
|
|
|
COMPONENT_OBJEXCLUDE := port/esp32/netif/ethernetif.o
|
|
|
|
endif
|
2020-03-20 13:39:22 +01:00
|
|
|
ifndef CONFIG_VFS_SUPPORT_IO
|
|
|
|
COMPONENT_OBJEXCLUDE += port/esp32/vfs_lwip.o
|
|
|
|
else
|
|
|
|
COMPONENT_OBJEXCLUDE += port/esp32/no_vfs_syscalls.o
|
|
|
|
endif
|
2019-04-09 19:34:38 +08:00
|
|
|
|
2021-04-15 20:48:52 +08:00
|
|
|
ifndef CONFIG_LWIP_ICMP
|
|
|
|
COMPONENT_OBJEXCLUDE += apps/ping/esp_ping.o apps/ping/ping.o apps/ping/ping_sock.o
|
|
|
|
endif
|
|
|
|
|
2019-04-29 14:30:13 +02:00
|
|
|
ifdef CONFIG_LWIP_PPP_SUPPORT
|
2018-09-06 20:23:20 +08:00
|
|
|
COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
|
|
|
|
endif
|
2017-01-20 12:05:38 +01:00
|
|
|
|
2021-04-16 19:17:21 +08:00
|
|
|
ifndef CONFIG_LWIP_DHCPS
|
|
|
|
COMPONENT_OBJEXCLUDE += apps/dhcpserver/dhcpserver.o
|
|
|
|
endif
|
|
|
|
|
2018-09-06 20:23:20 +08:00
|
|
|
CFLAGS += -Wno-address # lots of LWIP source files evaluate macros that check address of stack variables
|
2018-08-30 11:24:34 +08:00
|
|
|
|
2018-09-07 21:37:27 +08:00
|
|
|
lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
|
|
|
|
lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
|
2019-10-18 17:01:49 +02:00
|
|
|
lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
|
2019-02-13 15:57:11 +08:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|