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

View File

@ -13,6 +13,9 @@ PlatformIO 2.0
development platform for Lattice iCEstick FPGA Evaluation Kit and BQ IceZUM
Alhambra FPGA
(`issue #480 <https://github.com/platformio/platformio/issues/480>`_)
* Added support for `Microchip PIC32 <http://docs.platformio.org/en/latest/platforms/microchippic32.html>`__
development platform
(`issue #438 <https://github.com/platformio/platformio/issues/438>`_)
* Updated Arduino core for Espressif platform to 2.2.0
(`issue #627 <https://github.com/platformio/platformio/issues/627>`_)
* New boards for `ARM mbed <http://docs.platformio.org/en/latest/frameworks/mbed.html>`__

View File

@ -33,6 +33,7 @@ Embedded
espressif
freescalekinetis
lattice_ice40
microchippic32
nordicnrf51
nxplpc
siliconlabsefm32

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"

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