OVMS3-idf/components/lwip/component.mk
Ivan Grokhotkov f8750eb58d lwip: add compatibility headers for sntp.h and esp_ping.h
Before LwIP was moved into a submodule, sntp and esp_ping were
available as the following includes:

#include "apps/sntp/sntp.h"
#include "esp_ping.h"

This commit makes header files available at the old location, and adds
a deprecation warning for sntp.h.

Closes https://github.com/espressif/esp-idf/issues/2392
2018-09-21 14:09:37 +08:00

37 lines
799 B
Makefile

#
# Component Makefile
#
COMPONENT_SUBMODULES += lwip
COMPONENT_ADD_INCLUDEDIRS := \
include/apps \
lwip/src/include \
port/esp32/include \
port/esp32/include/arch \
include_compat
COMPONENT_SRCDIRS := \
apps/dhcpserver \
apps/ping \
lwip/src/api \
lwip/src/apps/sntp \
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
ifdef CONFIG_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
ifeq ($(GCC_NOT_5_2_0), 1)
lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized
lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough
endif