Improve ESP8266 platform support

This commit is contained in:
Valeriy Koval
2015-04-08 20:49:48 +03:00
parent 0a76df910d
commit 6cf2ab29da
2 changed files with 7 additions and 8 deletions

View File

@ -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',

View File

@ -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)