[realtek-ambz] Update lwIP to v2.1.3

This commit is contained in:
Kuba Szczodrzyński
2022-11-26 15:32:33 +01:00
parent 8a4392bb22
commit 1172c1a852
4 changed files with 25 additions and 4 deletions

View File

@@ -194,8 +194,8 @@ env.AddLibrary(
],
)
# Sources - lwIP 2.0.0
env.AddLibraryLwIP(version="2.0.0", port="amb1")
# Sources - lwIP 2.1.3
env.AddLibraryLwIP(version="2.1.3", port="amb1")
# Sources - mbedTLS
env.AddLibrary(

View File

@@ -27,7 +27,6 @@ if env.get("PROGNAME", "program") == "program":
env.Replace(PROGNAME="firmware")
env.Replace(PROGSUFFIX=".elf")
# Toolchain config - TODO multiple arch, specified in board.json
prefix = board.get("build.prefix", "")
env.Replace(
AR=prefix + "gcc-ar",

View File

@@ -49,7 +49,7 @@
"toolchain": "gccarmnoneeabi@~1.50201.0",
"libraries": {
"lwip": [
"v2.0.0-amb1"
"v2.1.3-amb1"
]
}
},

View File

@@ -0,0 +1,22 @@
/* Copyright (c) Kuba Szczodrzyński 2022-11-26. */
// make <strproc.h> not #define isprint, isdigit, isxdigit, islower and isspace
// this conflicts with stdlib <ctype.h>, if <strproc.h> is included before it
// include <ctype.h> before to get all its macros
#include <ctype.h>
// make 'static inline int _tolower' unused
#undef _tolower
#define _tolower _tolower_dummy
#include_next <strproc.h>
// restore _tolower to ctype's macro
#undef _tolower
#define _tolower(__c) ((unsigned char)(__c) - 'A' + 'a')
// dirty fix for compiling mbedTLS which uses _B as variable name
#ifdef CONFIG_SSL_RSA
#undef _B
#endif