[realtek-ambz] Update lwIP to v2.1.3
This commit is contained in:
@@ -194,8 +194,8 @@ env.AddLibrary(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
# Sources - lwIP 2.0.0
|
# Sources - lwIP 2.1.3
|
||||||
env.AddLibraryLwIP(version="2.0.0", port="amb1")
|
env.AddLibraryLwIP(version="2.1.3", port="amb1")
|
||||||
|
|
||||||
# Sources - mbedTLS
|
# Sources - mbedTLS
|
||||||
env.AddLibrary(
|
env.AddLibrary(
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ if env.get("PROGNAME", "program") == "program":
|
|||||||
env.Replace(PROGNAME="firmware")
|
env.Replace(PROGNAME="firmware")
|
||||||
env.Replace(PROGSUFFIX=".elf")
|
env.Replace(PROGSUFFIX=".elf")
|
||||||
|
|
||||||
# Toolchain config - TODO multiple arch, specified in board.json
|
|
||||||
prefix = board.get("build.prefix", "")
|
prefix = board.get("build.prefix", "")
|
||||||
env.Replace(
|
env.Replace(
|
||||||
AR=prefix + "gcc-ar",
|
AR=prefix + "gcc-ar",
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
"toolchain": "gccarmnoneeabi@~1.50201.0",
|
"toolchain": "gccarmnoneeabi@~1.50201.0",
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"lwip": [
|
"lwip": [
|
||||||
"v2.0.0-amb1"
|
"v2.1.3-amb1"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
22
platform/realtek-ambz/fixups/inc/strproc.h
Normal file
22
platform/realtek-ambz/fixups/inc/strproc.h
Normal 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
|
||||||
Reference in New Issue
Block a user