mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Improve ESP8266 platform support
This commit is contained in:
@ -58,20 +58,15 @@ env.Replace(
|
|||||||
"ICACHE_FLASH"
|
"ICACHE_FLASH"
|
||||||
],
|
],
|
||||||
|
|
||||||
CPPPATH=[
|
|
||||||
join("$PIOPACKAGES_DIR", "sdk-esp8266", "include"),
|
|
||||||
"$PROJECTSRC_DIR"
|
|
||||||
],
|
|
||||||
|
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
"-nostdlib",
|
"-nostdlib",
|
||||||
"-Wl,--no-check-section",
|
"-Wl,--no-check-sections",
|
||||||
"-u", "call_user_start",
|
"-u", "call_user_start",
|
||||||
"-Wl,-static"
|
"-Wl,-static"
|
||||||
],
|
],
|
||||||
|
|
||||||
LIBPATH=[join("$PIOPACKAGES_DIR", "sdk-esp8266", "lib")],
|
LIBPATH=[join("$PLATFORMFW_DIR", "sdk", "lib")],
|
||||||
LIBS=["c", "gcc", "hal", "phy", "net80211", "lwip", "wpa", "main", "pp"],
|
LIBS=["hal", "phy", "net80211", "lwip", "wpa", "main", "pp", "c", "gcc"],
|
||||||
|
|
||||||
SIZEPRINTCMD='"$SIZETOOL" -B -d $SOURCES',
|
SIZEPRINTCMD='"$SIZETOOL" -B -d $SOURCES',
|
||||||
|
|
||||||
|
@ -42,6 +42,10 @@ elif env.get("PLATFORM") == "timsp430":
|
|||||||
"$PIOPACKAGES_DIR",
|
"$PIOPACKAGES_DIR",
|
||||||
"framework-arduinomsp430"
|
"framework-arduinomsp430"
|
||||||
)
|
)
|
||||||
|
elif env.get("PLATFORM") == "espressif":
|
||||||
|
env.Prepend(
|
||||||
|
CPPPATH=[join("$PLATFORMFW_DIR", "sdk", "include")]
|
||||||
|
)
|
||||||
|
|
||||||
env.Replace(PLATFORMFW_DIR=PLATFORMFW_DIR)
|
env.Replace(PLATFORMFW_DIR=PLATFORMFW_DIR)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user