Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lwip2: lighter implementation #3362

Closed
wants to merge 88 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
aeab73a
add lwip2 as a submodule
d-a-v Jun 17, 2017
6c4f5cc
makefile for lwip2 submodule
d-a-v Jun 17, 2017
c289363
fix lwip2 builder makefile
d-a-v Jun 19, 2017
48b7fe2
+ precompiled lwip2 library with includes
d-a-v Jun 19, 2017
602c1b5
upstream fixes
d-a-v Jul 15, 2017
73f4307
Update axTLS to 5de79d71.
igrr Jul 23, 2017
a377aba
Fixed: urlDecode done before parsing args (#2956)
DottoreTozzi Aug 1, 2017
d997fe5
Move ASSERT() macro file text to PMEM (#3477)
earlephilhower Aug 1, 2017
950bb04
Remove unused ax_port_*alloc() functions (#3482)
earlephilhower Aug 1, 2017
bbd6f75
Replace r_rand with os_random for LWIP_RAND() (#3499)
forkineye Aug 7, 2017
a6cca4f
Manifest for @PlatformIO
ivankravets Aug 1, 2017
157aa31
Integration with @PlatformIO Build System
ivankravets Jun 1, 2017
71495e2
Move debug constant strings to PROGMEM (#3478)
earlephilhower Aug 7, 2017
56cd198
Move MIME type table into PROGMEM to save RAM (#3475)
earlephilhower Aug 7, 2017
1d79311
Removed literal '\n' in ESP8266HTTPUpdateServer response (#3421)
hchahine Aug 7, 2017
5764446
Fix to parse parameters in the URL of a POST with empty content. (#3398)
teejaydub Aug 7, 2017
d68c484
patch for #3462
herrold Jul 26, 2017
6499933
lwip2v2: merge upstream
d-a-v Sep 29, 2017
0a5d445
Functional Interrupts initial
hreintke Dec 8, 2016
d8f9956
Use correct separator in keywords.txt
per1234 Sep 2, 2017
92978a7
Fix exception_causes.rst formatting
nwf Aug 28, 2017
47baf29
Update WString.cpp
adams13x13 Aug 20, 2017
6e883e2
Update spiffs 0.3.7 to and mkspiffs 0.1.3
me-no-dev Sep 6, 2017
e0e3a77
Allow for double quotes in boundary (#3455)
probonopd Sep 12, 2017
36f09dc
link airkiss library
igrr Sep 12, 2017
655f859
Install @PlatformIO Core to user's space
ivankravets Sep 12, 2017
e725dc2
core: mask GPIO interrupts while attaching/detaching ISR handler (#3598)
igrr Sep 13, 2017
150e4e7
tools/sdk: remove conflicting time.o from libmain.a
igrr Sep 15, 2017
4c07926
Digest Authentication in Webserver Library (#3053)
Lan-Hekary Sep 18, 2017
0413d24
axtls: update to 66d530a, fixes #3335
igrr Sep 20, 2017
168e684
WiFiClientSecure: add loadCACert function (#3610)
rudivandrunen Sep 20, 2017
65d60d4
Add the ESP8266WiFiMulti to KEYWORD1 to make it highlight in the ino …
cheng3100 Sep 21, 2017
e928632
Added support for user-supplied DHCP range, with basic sanity checks …
NdK73 Sep 21, 2017
8e44050
Use LED_BUILTIN so that it works w/o attaching external LED (#3452)
probonopd Sep 21, 2017
f1b104e
Update mkspiffs to version 0.2.0
me-no-dev Sep 22, 2017
0c5373b
SPIFFS: update to f5e26c4, fixes #3612 (#3623)
Lan-Hekary Sep 22, 2017
baa63c5
ESP8266HTTPClient: Add PATCH request (#3590)
joextodd Sep 22, 2017
2a6040c
Case-insensitive deviceType compare and skip NOTIFY processing
snosrap Aug 1, 2017
1ab7065
UdpContext: check that pbuf_alloc doesn't return nullptr (#3354)
mblythe86 Sep 22, 2017
8ee9341
ESP8266HTTPClient: update library.properties (#3406)
Natim Sep 22, 2017
4b1c279
Revert SPIFFS_USE_MAGIC_LENGTH to 0 (#3612)
igrr Sep 22, 2017
3a98f62
Revert "Added support for user-supplied DHCP range, with basic sanity…
igrr Sep 25, 2017
14fbe81
Merge branch 'master' of https://github.com/esp8266/Arduino into lwip2v2
d-a-v Sep 29, 2017
5ee5d5f
lwip2: library recompiled with latest updates
d-a-v Sep 29, 2017
7d3ec78
Merge branch 'master' into lwip2v2
d-a-v Oct 3, 2017
8eafda7
Merge branch 'master' into lwip2v2
d-a-v Oct 8, 2017
d8710d2
Fixed comment InterruptLock "disable interrupts"
peternlewis Oct 11, 2017
d56afe5
Fix broken link
cwt137 Oct 9, 2017
019de9c
pgmspace: expand varargs correctly in printf_P (#2819)
igrr Oct 12, 2017
6f42d7b
pgmspace: zero out memory in strncpy_P (#2633)
igrr Oct 12, 2017
82fa801
debug: hexdump arguments should be const
igrr Oct 12, 2017
0f16d1b
provide implementation of _exit (#3698)
igrr Oct 12, 2017
e7ea117
Don't remove persistent WiFi settings when doing scan (#2946)
igrr Oct 12, 2017
49a2fde
sdk: update to v2.1.0-10-g509eae8
igrr May 23, 2017
c034ff5
enable 8M and 16M flash sizes for generic board
igrr May 23, 2017
15c6f8c
WiFiClient,WiFiServer: update to match new err_t definition
igrr Oct 14, 2017
9d7bda1
esptool: update to 0.4.12
igrr Oct 15, 2017
0e1bf08
WiFiUpd: fix warning
igrr Oct 15, 2017
fca2ef7
fix gettimeofday()
Juppit Oct 13, 2017
5690b89
fixes for SDK update
igrr Oct 15, 2017
91684af
fix link from md to rst (#3704)
bscheshir Oct 15, 2017
1515ada
Fix erase size in ESP.eraseConfig
igrr Sep 22, 2017
94a1509
Fix for redirect of HTTP Update, so that it always returns to the roo…
evharten Oct 15, 2017
0dafaaf
Add a workaround-delay in Serial.flush() (#3714)
WereCatf Oct 15, 2017
622e69d
Optimize EEPROM::put (#2487)
ittacco Oct 15, 2017
bd45372
ci: add skip_cleanup for release deployment
igrr Oct 15, 2017
ce08b50
sync lib with master
d-a-v Oct 15, 2017
2b177cb
Merge branch 'master' of https://github.com/esp8266/Arduino
d-a-v Oct 15, 2017
cf7af26
Merge branch 'master' of https://github.com/esp8266/Arduino into lwip2v2
d-a-v Oct 15, 2017
71e942d
update lwip2 include files (now stable-2.0.3) + fix typedef lwip_err_…
d-a-v Oct 17, 2017
fce2677
Merge remote-tracking branch 'esp8266/master' into lwip2v2
d-a-v Oct 22, 2017
fcfcbbe
reduce ram+flash footprint. It is now smaller than lwip1.4 (no sanity…
d-a-v Oct 25, 2017
f2d573f
update lwip2 include files (now stable-2.0.3) + fix typedef lwip_err_…
d-a-v Oct 17, 2017
7023a65
Minimal file with a few ESP8266-specific keywords - github issue #3701
vdeconinck Oct 21, 2017
8d5280e
Update SoftwareSerial to 3.3.0 (#3727)
plerup Oct 22, 2017
4ab9766
Increase version for PlatformIO (#3742)
julian-w Oct 22, 2017
0b3340f
Put WiFi into station mode in examples (#3731)
jes Oct 22, 2017
bcb534c
Make DNSServer debug output like other ESP libs
bryceschober Sep 22, 2017
48f0381
Make ESP8266mDNS debug output like other ESP libs
bryceschober Sep 22, 2017
da872a9
allocate HTTPUpload struct on demand (#2557)
Oct 17, 2017
2b5a977
minimize number of exit paths in ESP8266WebServer::handleClient (#2557)
Oct 17, 2017
7fa1286
sdk: update to v2.1.0-14-g33f234f
igrr Oct 30, 2017
fb52539
Merge branch 'master' into lwip2v2
d-a-v Oct 30, 2017
928abeb
Merge branch 'master' of https://github.com/esp8266/Arduino into lwip2v2
d-a-v Oct 30, 2017
d3139b6
restore boards.txt
d-a-v Oct 31, 2017
286b04b
restore liblwip2.a
d-a-v Oct 31, 2017
3362f4b
update lib: upstream fix timezone handling
d-a-v Oct 31, 2017
448867c
sync refs with upstream/linklayer
d-a-v Oct 31, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tools/sdk/lwip2/lwip2"]
path = tools/sdk/lwip2/builder
url = https://github.com/d-a-v/esp82xx-nonos-linklayer.git
156 changes: 156 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ menu.ESPModule=Module
menu.Debug=Debug port
menu.DebugLevel=Debug Level
menu.LwIPVariant=lwIP Variant
menu.lwIP=lwIP Build

##############################################################
generic.name=Generic ESP8266 Module
Expand Down Expand Up @@ -241,6 +242,12 @@ generic.menu.DebugLevel.OTA2____.build.debug_level=-DDEBUG_ESP_OTA -DDEBUG_ESP_U
generic.menu.DebugLevel.all_____=All
generic.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM

generic.menu.lwIP.open=v2
generic.menu.lwIP.open.build.lwip_include=lwip2/include
generic.menu.lwIP.open.build.lwip_lib=-llwip2
generic.menu.lwIP.legacy=v1.4 (espressif)
generic.menu.lwIP.legacy.build.lwip_include=lwip/include
generic.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
# ESP8285 chip has built-in 1MB flash
Expand Down Expand Up @@ -347,6 +354,12 @@ esp8285.menu.FlashSize.1M64.build.spiffs_end=0xFB000
esp8285.menu.FlashSize.1M64.build.spiffs_blocksize=4096
esp8285.menu.FlashSize.1M64.upload.maximum_size=958448

esp8285.menu.lwIP.open=v2
esp8285.menu.lwIP.open.build.lwip_include=lwip2/include
esp8285.menu.lwIP.open.build.lwip_lib=-llwip2
esp8285.menu.lwIP.legacy=v1.4 (espressif)
esp8285.menu.lwIP.legacy.build.lwip_include=lwip/include
esp8285.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################

Expand Down Expand Up @@ -412,6 +425,14 @@ espduino.menu.FlashSize.4M1M.build.spiffs_start=0x300000
espduino.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
espduino.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
espduino.menu.FlashSize.4M1M.build.spiffs_pagesize=256

espduino.menu.lwIP.open=v2
espduino.menu.lwIP.open.build.lwip_include=lwip2/include
espduino.menu.lwIP.open.build.lwip_lib=-llwip2
espduino.menu.lwIP.legacy=v1.4 (espressif)
espduino.menu.lwIP.legacy.build.lwip_include=lwip/include
espduino.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
huzzah.name=Adafruit HUZZAH ESP8266

Expand Down Expand Up @@ -467,6 +488,13 @@ huzzah.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
huzzah.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
huzzah.menu.FlashSize.4M1M.build.spiffs_pagesize=256

huzzah.menu.lwIP.open=v2
huzzah.menu.lwIP.open.build.lwip_include=lwip2/include
huzzah.menu.lwIP.open.build.lwip_lib=-llwip2
huzzah.menu.lwIP.legacy=v1.4 (espressif)
huzzah.menu.lwIP.legacy.build.lwip_include=lwip/include
huzzah.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
espresso_lite_v1.name=ESPresso Lite 1.0
espresso_lite_v1.upload.tool=esptool
Expand Down Expand Up @@ -572,6 +600,13 @@ espresso_lite_v1.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DD
espresso_lite_v1.build.debug_port=
espresso_lite_v1.build.debug_level=

espresso_lite_v1.menu.lwIP.open=v2
espresso_lite_v1.menu.lwIP.open.build.lwip_include=lwip2/include
espresso_lite_v1.menu.lwIP.open.build.lwip_lib=-llwip2
espresso_lite_v1.menu.lwIP.legacy=v1.4 (espressif)
espresso_lite_v1.menu.lwIP.legacy.build.lwip_include=lwip/include
espresso_lite_v1.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
espresso_lite_v2.name=ESPresso Lite 2.0
espresso_lite_v2.upload.tool=esptool
Expand Down Expand Up @@ -677,6 +712,13 @@ espresso_lite_v2.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DD
espresso_lite_v2.build.debug_port=
espresso_lite_v2.build.debug_level=

espresso_lite_v2.menu.lwIP.open=v2
espresso_lite_v2.menu.lwIP.open.build.lwip_include=lwip2/include
espresso_lite_v2.menu.lwIP.open.build.lwip_lib=-llwip2
espresso_lite_v2.menu.lwIP.legacy=v1.4 (espressif)
espresso_lite_v2.menu.lwIP.legacy.build.lwip_include=lwip/include
espresso_lite_v2.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
phoenix_v1.name=Phoenix 1.0
phoenix_v1.upload.tool=esptool
Expand Down Expand Up @@ -782,6 +824,13 @@ phoenix_v1.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_E
phoenix_v1.build.debug_port=
phoenix_v1.build.debug_level=

phoenix_v1.menu.lwIP.open=v2
phoenix_v1.menu.lwIP.open.build.lwip_include=lwip2/include
phoenix_v1.menu.lwIP.open.build.lwip_lib=-llwip2
phoenix_v1.menu.lwIP.legacy=v1.4 (espressif)
phoenix_v1.menu.lwIP.legacy.build.lwip_include=lwip/include
phoenix_v1.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
phoenix_v2.name=Phoenix 2.0
phoenix_v2.upload.tool=esptool
Expand Down Expand Up @@ -887,6 +936,13 @@ phoenix_v2.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_E
phoenix_v2.build.debug_port=
phoenix_v2.build.debug_level=

phoenix_v2.menu.lwIP.open=v2
phoenix_v2.menu.lwIP.open.build.lwip_include=lwip2/include
phoenix_v2.menu.lwIP.open.build.lwip_lib=-llwip2
phoenix_v2.menu.lwIP.legacy=v1.4 (espressif)
phoenix_v2.menu.lwIP.legacy.build.lwip_include=lwip/include
phoenix_v2.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
nodemcu.name=NodeMCU 0.9 (ESP-12 Module)

Expand Down Expand Up @@ -951,6 +1007,13 @@ nodemcu.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
nodemcu.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
nodemcu.menu.FlashSize.4M1M.build.spiffs_pagesize=256

nodemcu.menu.lwIP.open=v2
nodemcu.menu.lwIP.open.build.lwip_include=lwip2/include
nodemcu.menu.lwIP.open.build.lwip_lib=-llwip2
nodemcu.menu.lwIP.legacy=v1.4 (espressif)
nodemcu.menu.lwIP.legacy.build.lwip_include=lwip/include
nodemcu.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
nodemcuv2.name=NodeMCU 1.0 (ESP-12E Module)

Expand Down Expand Up @@ -1015,6 +1078,12 @@ nodemcuv2.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
nodemcuv2.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
nodemcuv2.menu.FlashSize.4M1M.build.spiffs_pagesize=256

nodemcuv2.menu.lwIP.open=v2
nodemcuv2.menu.lwIP.open.build.lwip_include=lwip2/include
nodemcuv2.menu.lwIP.open.build.lwip_lib=-llwip2
nodemcuv2.menu.lwIP.legacy=v1.4 (espressif)
nodemcuv2.menu.lwIP.legacy.build.lwip_include=lwip/include
nodemcuv2.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
modwifi.name=Olimex MOD-WIFI-ESP8266(-DEV)
Expand Down Expand Up @@ -1070,6 +1139,13 @@ modwifi.menu.UploadSpeed.512000.upload.speed=512000
modwifi.menu.UploadSpeed.921600=921600
modwifi.menu.UploadSpeed.921600.upload.speed=921600

modwifi.menu.lwIP.open=v2
modwifi.menu.lwIP.open.build.lwip_include=lwip2/include
modwifi.menu.lwIP.open.build.lwip_lib=-llwip2
modwifi.menu.lwIP.legacy=v1.4 (espressif)
modwifi.menu.lwIP.legacy.build.lwip_include=lwip/include
modwifi.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
thing.name=SparkFun ESP8266 Thing

Expand Down Expand Up @@ -1123,6 +1199,13 @@ thing.menu.UploadSpeed.512000.upload.speed=512000
thing.menu.UploadSpeed.921600=921600
thing.menu.UploadSpeed.921600.upload.speed=921600

thing.menu.lwIP.open=v2
thing.menu.lwIP.open.build.lwip_include=lwip2/include
thing.menu.lwIP.open.build.lwip_lib=-llwip2
thing.menu.lwIP.legacy=v1.4 (espressif)
thing.menu.lwIP.legacy.build.lwip_include=lwip/include
thing.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
thingdev.name=SparkFun ESP8266 Thing Dev

Expand Down Expand Up @@ -1234,6 +1317,13 @@ esp210.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
esp210.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
esp210.menu.FlashSize.4M1M.build.spiffs_pagesize=256

esp210.menu.lwIP.open=v2
esp210.menu.lwIP.open.build.lwip_include=lwip2/include
esp210.menu.lwIP.open.build.lwip_lib=-llwip2
esp210.menu.lwIP.legacy=v1.4 (espressif)
esp210.menu.lwIP.legacy.build.lwip_include=lwip/include
esp210.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
# wifio.name=Wifio
#
Expand Down Expand Up @@ -1328,6 +1418,13 @@ d1_mini.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
d1_mini.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
d1_mini.menu.FlashSize.4M1M.build.spiffs_pagesize=256

d1_mini.menu.lwIP.open=v2
d1_mini.menu.lwIP.open.build.lwip_include=lwip2/include
d1_mini.menu.lwIP.open.build.lwip_lib=-llwip2
d1_mini.menu.lwIP.legacy=v1.4 (espressif)
d1_mini.menu.lwIP.legacy.build.lwip_include=lwip/include
d1_mini.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
d1.name=WeMos D1(Retired)

Expand Down Expand Up @@ -1393,6 +1490,12 @@ d1.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
d1.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
d1.menu.FlashSize.4M1M.build.spiffs_pagesize=256

d1.menu.lwIP.open=v2
d1.menu.lwIP.open.build.lwip_include=lwip2/include
d1.menu.lwIP.open.build.lwip_lib=-llwip2
d1.menu.lwIP.legacy=v1.4 (espressif)
d1.menu.lwIP.legacy.build.lwip_include=lwip/include
d1.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################

Expand Down Expand Up @@ -1470,6 +1573,13 @@ espino.menu.ResetMethod.ck.upload.resetmethod=ck
espino.menu.ResetMethod.nodemcu=nodemcu
espino.menu.ResetMethod.nodemcu.upload.resetmethod=nodemcu

espino.menu.lwIP.open=v2
espino.menu.lwIP.open.build.lwip_include=lwip2/include
espino.menu.lwIP.open.build.lwip_lib=-llwip2
espino.menu.lwIP.legacy=v1.4 (espressif)
espino.menu.lwIP.legacy.build.lwip_include=lwip/include
espino.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
espinotee.name=ThaiEasyElec's ESPino

Expand Down Expand Up @@ -1534,6 +1644,13 @@ espinotee.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
espinotee.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
espinotee.menu.FlashSize.4M1M.build.spiffs_pagesize=256

espinotee.menu.lwIP.open=v2
espinotee.menu.lwIP.open.build.lwip_include=lwip2/include
espinotee.menu.lwIP.open.build.lwip_lib=-llwip2
espinotee.menu.lwIP.legacy=v1.4 (espressif)
espinotee.menu.lwIP.legacy.build.lwip_include=lwip/include
espinotee.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
wifinfo.name=WifInfo

Expand Down Expand Up @@ -1664,6 +1781,12 @@ wifinfo.menu.UploadSpeed.512000.upload.speed=512000
wifinfo.menu.UploadSpeed.921600=921600
wifinfo.menu.UploadSpeed.921600.upload.speed=921600

wifinfo.menu.lwIP.open=v2
wifinfo.menu.lwIP.open.build.lwip_include=lwip2/include
wifinfo.menu.lwIP.open.build.lwip_lib=-llwip2
wifinfo.menu.lwIP.legacy=v1.4 (espressif)
wifinfo.menu.lwIP.legacy.build.lwip_include=lwip/include
wifinfo.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
coredev.name=Core Development Module
Expand Down Expand Up @@ -1700,6 +1823,11 @@ coredev.menu.LwIPVariant.OpenSource=Open Source (gcc)
coredev.menu.LwIPVariant.OpenSource.build.lwip_lib=-llwip_src
coredev.menu.LwIPVariant.OpenSource.build.lwip_flags=-DLWIP_OPEN_SRC
coredev.menu.LwIPVariant.OpenSource.recipe.hooks.sketch.prebuild.1.pattern=make -C "{runtime.platform.path}/tools/sdk/lwip/src" install TOOLS_PATH="{runtime.tools.xtensa-lx106-elf-gcc.path}/bin/xtensa-lx106-elf-"
coredev.menu.LwIPVariant.LWIP2=Original Sources (git+gcc)
coredev.menu.LwIPVariant.LWIP2.build.lwip_lib=-llwip2
coredev.menu.LwIPVariant.LWIP2.build.lwip_include=lwip2/include
coredev.menu.LwIPVariant.LWIP2.build.lwip_flags=-DLWIP_OPEN_SRC
coredev.menu.LwIPVariant.LWIP2.recipe.hooks.sketch.prebuild.1.pattern=make -C "{runtime.platform.path}/tools/sdk/lwip2/builder" install TOOLS_PATH="{runtime.tools.xtensa-lx106-elf-gcc.path}/bin/xtensa-lx106-elf-"

coredev.menu.CpuFrequency.80=80 MHz
coredev.menu.CpuFrequency.80.build.f_cpu=80000000L
Expand Down Expand Up @@ -1905,6 +2033,13 @@ coredev.menu.DebugLevel.OTA2____.build.debug_level=-DDEBUG_ESP_OTA -DDEBUG_ESP_U
coredev.menu.DebugLevel.all_____=All
coredev.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM

coredev.menu.lwIP.open=v2
coredev.menu.lwIP.open.build.lwip_include=lwip2/include
coredev.menu.lwIP.open.build.lwip_lib=-llwip2
coredev.menu.lwIP.legacy=v1.4 (espressif)
coredev.menu.lwIP.legacy.build.lwip_include=lwip/include
coredev.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

############ Arduino boards with Esp8266 ############

arduino-esp8266.name=Arduino
Expand Down Expand Up @@ -1973,6 +2108,13 @@ arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000
arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_blocksize=8192
arduino-esp8266.menu.FlashSize.4M3M.build.spiffs_pagesize=256

arduino-esp8266.menu.lwIP.open=v2
arduino-esp8266.menu.lwIP.open.build.lwip_include=lwip2/include
arduino-esp8266.menu.lwIP.open.build.lwip_lib=-llwip2
arduino-esp8266.menu.lwIP.legacy=v1.4 (espressif)
arduino-esp8266.menu.lwIP.legacy.build.lwip_include=lwip/include
arduino-esp8266.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################

gen4iod.name=4D Systems gen4 IoD Range
Expand Down Expand Up @@ -2023,6 +2165,13 @@ gen4iod.menu.UploadSpeed.512000.upload.speed=512000
gen4iod.menu.UploadSpeed.921600=921600
gen4iod.menu.UploadSpeed.921600.upload.speed=921600

gen4iod.menu.lwIP.open=v2
gen4iod.menu.lwIP.open.build.lwip_include=lwip2/include
gen4iod.menu.lwIP.open.build.lwip_lib=-llwip2
gen4iod.menu.lwIP.legacy=v1.4 (espressif)
gen4iod.menu.lwIP.legacy.build.lwip_include=lwip/include
gen4iod.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc

##############################################################
oak.name=DigiStump Oak

Expand Down Expand Up @@ -2087,3 +2236,10 @@ oak.menu.FlashSize.4M1M.build.spiffs_start=0x300000
oak.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
oak.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
oak.menu.FlashSize.4M1M.build.spiffs_pagesize=256

oak.menu.lwIP.open=v2
oak.menu.lwIP.open.build.lwip_include=lwip2/include
oak.menu.lwIP.open.build.lwip_lib=-llwip2
oak.menu.lwIP.legacy=v1.4 (espressif)
oak.menu.lwIP.legacy.build.lwip_include=lwip/include
oak.menu.lwIP.legacy.build.lwip_lib=-llwip_gcc
3 changes: 2 additions & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra

build.lwip_lib=-llwip_gcc
build.lwip_include=lwip/include
build.lwip_flags=-DLWIP_OPEN_SRC

compiler.path={runtime.tools.xtensa-lx106-elf-gcc.path}/bin/
compiler.sdk.path={runtime.platform.path}/tools/sdk
compiler.libc.path={runtime.platform.path}/tools/sdk/libc/xtensa-lx106-elf
compiler.cpreprocessor.flags=-D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I{compiler.sdk.path}/include" "-I{compiler.sdk.path}/lwip/include" "-I{compiler.libc.path}/include" "-I{build.path}/core"
compiler.cpreprocessor.flags=-D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I{compiler.sdk.path}/include" "-I{compiler.sdk.path}/{build.lwip_include}" "-I{compiler.libc.path}/include" "-I{build.path}/core"

compiler.c.cmd=xtensa-lx106-elf-gcc
compiler.c.flags=-c {compiler.warning_flags} -Os -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -MMD -std=gnu99 -ffunction-sections -fdata-sections
Expand Down
1 change: 1 addition & 0 deletions tools/sdk/ld/eagle.app.v6.common.ld
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ SECTIONS
*libstdc++.a:(.literal .text .literal.* .text.*)
*liblwip_gcc.a:(.literal .text .literal.* .text.*)
*liblwip_src.a:(.literal .text .literal.* .text.*)
*liblwip2.a:(.literal .text .literal.* .text.*)
*libaxtls.a:(.literal .text .literal.* .text.*)
*libat.a:(.literal.* .text.*)
*libcrypto.a:(.literal.* .text.*)
Expand Down
Binary file added tools/sdk/lib/liblwip2.a
Binary file not shown.
6 changes: 6 additions & 0 deletions tools/sdk/lwip2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

all install clean: builder/Makefile.arduino
make -C builder -f Makefile.arduino $@

builder/Makefile.arduino:
git submodule update --init --recursive builder
1 change: 1 addition & 0 deletions tools/sdk/lwip2/builder
Submodule builder added at 9b6966
1 change: 1 addition & 0 deletions tools/sdk/lwip2/include/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
warning: this directory is re/over/written from lwip2 builder upon lwip2 rebuild
Loading