From e5c39a3a9e895ad802366c8058c39538d1ff5bdc Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 2 Jan 2016 17:52:25 +0200 Subject: [PATCH] esp8266: Switch to lwIP built from source. Using https://github.com/pfalcon/esp-open-lwip project. --- esp8266/Makefile | 2 +- esp8266/modesp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esp8266/Makefile b/esp8266/Makefile index 04b620be5b..e6f04d3800 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -35,7 +35,7 @@ CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib -DUART_ $(CFLAGS_XTENSA) $(COPT) $(CFLAGS_EXTRA) LDFLAGS = -nostdlib -T esp8266.ld -Map=$(@:.elf=.map) --cref -LIBS = -L$(ESP_SDK)/lib -lmain -ljson -lssl -llwip -lpp -lnet80211 -lwpa -lphy -lnet80211 +LIBS = -L$(ESP_SDK)/lib -lmain -ljson -lssl -llwip_open -lpp -lnet80211 -lwpa -lphy -lnet80211 LIBGCC_FILE_NAME = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) LIBS += -L$(dir $(LIBGCC_FILE_NAME)) -lgcc diff --git a/esp8266/modesp.c b/esp8266/modesp.c index 2b5c119de3..73cfc4275c 100644 --- a/esp8266/modesp.c +++ b/esp8266/modesp.c @@ -40,7 +40,7 @@ #include "spi_flash.h" #include "utils.h" -#define MODESP_ESPCONN (1) +#define MODESP_ESPCONN (0) #if MODESP_ESPCONN STATIC const mp_obj_type_t esp_socket_type;