From: Angus Gratton Date: Thu, 6 Sep 2018 12:23:20 +0000 (+0800) Subject: lwip: Re-add CONFIG_PPP_SUPPORT check, remove redundant CFLAGS X-Git-Tag: v3.2-beta1~205^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deb46b415f43ced3752eac8acba53eaa7234aec2;p=esp-idf lwip: Re-add CONFIG_PPP_SUPPORT check, remove redundant CFLAGS --- diff --git a/components/lwip/component.mk b/components/lwip/component.mk index 914ab6577f..d79cbd36c2 100644 --- a/components/lwip/component.mk +++ b/components/lwip/component.mk @@ -18,15 +18,13 @@ COMPONENT_SRCDIRS := \ lwip/src/core/ipv4 \ lwip/src/core/ipv6 \ lwip/src/netif \ - lwip/src/netif/ppp \ port/esp32 \ port/esp32/freertos \ port/esp32/netif \ - port/esp32/debug + port/esp32/debug -CFLAGS += -Wno-address # lots of LWIP source files evaluate macros that check address of stack variables - -api/tcpip.o apps/dhcpserver.o: CFLAGS += -Wno-unused-variable -apps/dhcpserver.o core/pbuf.o core/tcp_in.o: CFLAGS += -Wno-unused-but-set-variable -netif/ppp/pppos.o: CFLAGS += -Wno-type-limits +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