Skip to content

Commit 92d06e4

Browse files
committed
Support external LwIP
1 parent 1027d38 commit 92d06e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platforms/esp8266/Makefile.build

+4
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,15 @@ MEMORY_FLAGS = -DFS_MAX_OPEN_FILES=5
162162

163163
.PHONY: all clean
164164

165+
ifneq "$(MGOS_ESP8266_LWIP)" "1"
165166
# NB: These setting must match ones used during build of the LwIP library during Docker image build.
166167
LWIP_CFLAGS = -DTCP_MSS=1460 -DTCP_MSL=5000 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DLWIP_COMPAT_SOCKETS=0 \
167168
-I$(MGOS_PATH)/include
168169
LIBS += -llwip2-1460-feat
169170
IPATH += /opt/Espressif/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/lwip2
171+
else
172+
LWIP_CFLAGS =
173+
endif
170174

171175
MGOS_CFLAGS = -DMGOS_APP=\"$(APP)\" \
172176
-DMGOS_MAX_NUM_UARTS=2 \

0 commit comments

Comments
 (0)