Skip to content

Commit 32f6826

Browse files
d-a-vigrr
authored andcommitted
lwip2 integration
1 parent 5c01841 commit 32f6826

File tree

6 files changed

+2533
-1380
lines changed

6 files changed

+2533
-1380
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lwip2"]
2+
path = tools/sdk/lwip2/builder
3+
url = https://github.com/d-a-v/esp82xx-nonos-linklayer.git

boards.txt

+2,520-1,379
Large diffs are not rendered by default.

platform.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ compiler.warning_flags.more=-Wall
1818
compiler.warning_flags.all=-Wall -Wextra
1919

2020
build.lwip_lib=-llwip_gcc
21+
build.lwip_include=lwip/include
2122
build.lwip_flags=-DLWIP_OPEN_SRC
2223

2324
compiler.path={runtime.tools.xtensa-lx106-elf-gcc.path}/bin/
2425
compiler.sdk.path={runtime.platform.path}/tools/sdk
2526
compiler.libc.path={runtime.platform.path}/tools/sdk/libc/xtensa-lx106-elf
26-
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"
27+
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"
2728

2829
compiler.c.cmd=xtensa-lx106-elf-gcc
2930
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

tools/sdk/ld/eagle.app.v6.common.ld

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ SECTIONS
177177
*libstdc++.a:(.literal .text .literal.* .text.*)
178178
*liblwip_gcc.a:(.literal .text .literal.* .text.*)
179179
*liblwip_src.a:(.literal .text .literal.* .text.*)
180+
*liblwip2.a:(.literal .text .literal.* .text.*)
180181
*libaxtls.a:(.literal .text .literal.* .text.*)
181182
*libat.a:(.literal.* .text.*)
182183
*libcrypto.a:(.literal.* .text.*)

tools/sdk/lwip2/Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
all install clean: builder/Makefile.arduino
3+
make -C builder -f Makefile.arduino $@
4+
5+
builder/Makefile.arduino:
6+
git submodule update --init --recursive builder

tools/sdk/lwip2/builder

Submodule builder added at 9b6966a

0 commit comments

Comments
 (0)