]> granicus.if.org Git - esp-idf/commitdiff
lwip: fix error when building on OS X, only build ppp if enabled
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 25 Apr 2017 09:22:09 +0000 (17:22 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 25 Apr 2017 09:22:09 +0000 (17:22 +0800)
- reorder directories listed in COMPONENT_SRCDIRS so that
  subdirectories precede parent directories

- don’t include PPP source directories if PPP support is not enabled

components/lwip/component.mk

index 0e98b2f51a6d00b90fb93247ad5a219ae99097dd..6473b021a6e302acae4db935978f7bba969b2965 100644 (file)
@@ -2,9 +2,22 @@
 # Component Makefile
 #
 
-COMPONENT_ADD_INCLUDEDIRS := include/lwip include/lwip/port include/lwip/posix apps/ping
+COMPONENT_ADD_INCLUDEDIRS := \
+       include/lwip \
+       include/lwip/port \
+       include/lwip/posix \
+       apps/ping
 
-COMPONENT_SRCDIRS := api apps/sntp apps/ping apps core/ipv4 core/ipv6 core netif netif/ppp netif/ppp/polarssl port/freertos port/netif port/debug port
+ifdef CONFIG_PPP_SUPPORT
+LWIP_PPP_DIRS := netif/ppp/polarssl netif/ppp 
+endif
+
+COMPONENT_SRCDIRS := \
+       api \
+       apps/sntp apps/ping apps \
+       core/ipv4 core/ipv6 core \
+       $(LWIP_PPP_DIRS) netif \
+       port/freertos port/netif port/debug port
 
 CFLAGS += -Wno-address  # lots of LWIP source files evaluate macros that check address of stack variables