Skip to content

Commit

Permalink
Support external LwIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Mar 2, 2021
1 parent 1027d38 commit 92d06e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platforms/esp8266/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,15 @@ MEMORY_FLAGS = -DFS_MAX_OPEN_FILES=5

.PHONY: all clean

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

MGOS_CFLAGS = -DMGOS_APP=\"$(APP)\" \
-DMGOS_MAX_NUM_UARTS=2 \
Expand Down

0 comments on commit 92d06e4

Please sign in to comment.