Add support for Microchip PIC32 development platform // Resolve #438

This commit is contained in:
Ivan Kravets
2016-04-27 11:43:48 +03:00
parent b036a82203
commit d5b41fe617
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
import sys
VERSION = (2, 9, "0.dev1")
VERSION = (2, 9, "0.dev2")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"
+9 -4
View File
@@ -73,10 +73,7 @@ env.Replace(
"-mprocessor=$BOARD_MCU",
"-mno-peripheral-libs",
"-nostartfiles",
"-Wl,--gc-sections",
"-Wl,--script=chipKIT-application-COMMON%s.ld" % (
"-MZ" if "MZ" in env.get("BOARD_OPTIONS", {}).get(
"build", {}).get("mcu") else "")
"-Wl,--gc-sections"
],
LIBS=["m"],
@@ -149,7 +146,15 @@ for f in env['LINKFLAGS']:
_new_linkflags.append(f)
else:
_new_linkflags.append("-Wl,--script=%s" % f[6:])
env.Replace(LINKFLAGS=_new_linkflags)
env.Append(
LINKFLAGS=[
"-Wl,--script=chipKIT-application-COMMON%s.ld" % (
"-MZ" if "MZ" in env.get("BOARD_OPTIONS", {}).get(
"build", {}).get("mcu") else "")
]
)
#
# Target: Build the .hex