mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Use "PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY" as default lwIP profile for @PlatformIO (#5305)
This commit is contained in:
parent
8ae0746e4a
commit
e876170cf4
@ -135,11 +135,10 @@ flatten_cppdefines = env.Flatten(env['CPPDEFINES'])
|
||||
#
|
||||
# lwIP
|
||||
#
|
||||
if "PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY" in flatten_cppdefines:
|
||||
if "PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH" in flatten_cppdefines:
|
||||
env.Append(
|
||||
CPPDEFINES=[("TCP_MSS", 536), ("LWIP_FEATURES", 1)],
|
||||
CPPPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lwip2", "include")],
|
||||
LIBS=["lwip2-536-feat"]
|
||||
CPPPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lwip", "include")],
|
||||
LIBS=["lwip_gcc"]
|
||||
)
|
||||
elif "PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH" in flatten_cppdefines:
|
||||
env.Append(
|
||||
@ -159,10 +158,12 @@ elif "PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH" in flatten_cppdefi
|
||||
CPPPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lwip2", "include")],
|
||||
LIBS=["lwip2-1460"]
|
||||
)
|
||||
# PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY (default)
|
||||
else:
|
||||
env.Append(
|
||||
CPPPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lwip", "include")],
|
||||
LIBS=["lwip_gcc"]
|
||||
CPPDEFINES=[("TCP_MSS", 536), ("LWIP_FEATURES", 1)],
|
||||
CPPPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lwip2", "include")],
|
||||
LIBS=["lwip2-536-feat"]
|
||||
)
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user