From 1d355b93df0fd42499ab83fb8c0a5f6db357fbce Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 9 Sep 2016 13:53:38 +1000 Subject: [PATCH] lwip: Define LWIP_ESP8266 in port lwipopts.h not gcc command line --- components/lwip/component.mk | 2 +- components/lwip/include/lwip/port/lwipopts.h | 2 ++ components/tcpip_adapter/component.mk | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lwip/component.mk b/components/lwip/component.mk index 23c9fc160..4fb0be5b6 100644 --- a/components/lwip/component.mk +++ b/components/lwip/component.mk @@ -6,6 +6,6 @@ COMPONENT_ADD_INCLUDEDIRS := include/lwip include/lwip/port COMPONENT_SRCDIRS := api apps/sntp apps core/ipv4 core/ipv6 core netif port/freertos port/netif port -EXTRA_CFLAGS := -Wno-error=address -Waddress -DLWIP_ESP8266 +EXTRA_CFLAGS := -Wno-error=address -Waddress include $(IDF_PATH)/make/component_common.mk diff --git a/components/lwip/include/lwip/port/lwipopts.h b/components/lwip/include/lwip/port/lwipopts.h index 00151a2ff..26d3c8dcb 100755 --- a/components/lwip/include/lwip/port/lwipopts.h +++ b/components/lwip/include/lwip/port/lwipopts.h @@ -34,6 +34,8 @@ #include +/* Enable all Espressif-only options */ +#define LWIP_ESP8266 /* ----------------------------------------------- diff --git a/components/tcpip_adapter/component.mk b/components/tcpip_adapter/component.mk index cb863d1b7..a57ae0b12 100755 --- a/components/tcpip_adapter/component.mk +++ b/components/tcpip_adapter/component.mk @@ -2,6 +2,4 @@ # Component Makefile # -EXTRA_CFLAGS := -DLWIP_ESP8266 - include $(IDF_PATH)/make/component_common.mk