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"
],
CPPPATH=[
join("$PIOPACKAGES_DIR", "sdk-esp8266", "include"),
"$PROJECTSRC_DIR"
],
LINKFLAGS=[
"-nostdlib",
"-Wl,--no-check-section",
"-Wl,--no-check-sections",
"-u", "call_user_start",
"-Wl,-static"
],
LIBPATH=[join("$PIOPACKAGES_DIR", "sdk-esp8266", "lib")],
LIBS=["c", "gcc", "hal", "phy", "net80211", "lwip", "wpa", "main", "pp"],
LIBPATH=[join("$PLATFORMFW_DIR", "sdk", "lib")],
LIBS=["hal", "phy", "net80211", "lwip", "wpa", "main", "pp", "c", "gcc"],
SIZEPRINTCMD='"$SIZETOOL" -B -d $SOURCES',

View File

@ -42,6 +42,10 @@ elif env.get("PLATFORM") == "timsp430":
"$PIOPACKAGES_DIR",
"framework-arduinomsp430"
)
elif env.get("PLATFORM") == "espressif":
env.Prepend(
CPPPATH=[join("$PLATFORMFW_DIR", "sdk", "include")]
)
env.Replace(PLATFORMFW_DIR=PLATFORMFW_DIR)