OVMS3-idf/components/lwip/component.mk

49 lines
1.1 KiB
Makefile
Raw Normal View History

2016-08-17 15:08:22 +00:00
#
# Component Makefile
#
2018-09-06 11:43:08 +00:00
COMPONENT_SUBMODULES += lwip
2016-08-17 15:08:22 +00:00
COMPONENT_ADD_INCLUDEDIRS := \
2018-09-06 11:43:08 +00:00
include/apps \
include/apps/sntp \
2018-09-06 11:43:08 +00:00
lwip/src/include \
port/esp32/include \
port/esp32/include/arch
COMPONENT_SRCDIRS := \
2018-09-06 11:43:08 +00:00
apps/dhcpserver \
apps/ping \
apps/sntp \
2018-09-06 11:43:08 +00:00
lwip/src/api \
lwip/src/apps/sntp \
lwip/src/apps/netbiosns \
2018-09-06 11:43:08 +00:00
lwip/src/core \
lwip/src/core/ipv4 \
lwip/src/core/ipv6 \
lwip/src/netif \
port/esp32 \
port/esp32/freertos \
port/esp32/netif \
port/esp32/debug
2016-08-17 15:08:22 +00:00
ifndef CONFIG_IDF_TARGET_ESP32
COMPONENT_OBJEXCLUDE := port/esp32/netif/ethernetif.o
endif
ifndef CONFIG_VFS_SUPPORT_IO
COMPONENT_OBJEXCLUDE += port/esp32/vfs_lwip.o
else
COMPONENT_OBJEXCLUDE += port/esp32/no_vfs_syscalls.o
endif
ifdef CONFIG_LWIP_PPP_SUPPORT
COMPONENT_SRCDIRS += lwip/src/netif/ppp lwip/src/netif/ppp/polarssl
endif
CFLAGS += -Wno-address # lots of LWIP source files evaluate macros that check address of stack variables
lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
COMPONENT_ADD_LDFRAGMENTS += linker.lf