diff --git a/components/lwip/component.mk b/components/lwip/component.mk index 750c1cc0c..3e6b26c0f 100644 --- a/components/lwip/component.mk +++ b/components/lwip/component.mk @@ -6,6 +6,6 @@ COMPONENT_ADD_INCLUDEDIRS := include/lwip include/lwip/port include/lwip/posix COMPONENT_SRCDIRS := api apps/sntp apps core/ipv4 core/ipv6 core netif port/freertos port/netif port -CFLAGS += -Wno-error=address -Waddress -DLWIP_ESP8266 +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 14596443f..a57ae0b12 100755 --- a/components/tcpip_adapter/component.mk +++ b/components/tcpip_adapter/component.mk @@ -2,6 +2,4 @@ # Component Makefile # -CFLAGS += -DLWIP_ESP8266 - include $(IDF_PATH)/make/component_common.mk