Skip to content

Commit 93ad2e7

Browse files
committed
Merge branch 'release/v1.5.2'
2 parents 9ccdb22 + 2309786 commit 93ad2e7

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

builder/main.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969

7070
LIBS=["m"],
7171

72+
SIZEPROGREGEXP=r"^(?:\.reset|\.image_ptr_table|\.app_excpt|\.vector\S*|\.startup|\.init|\.fini|\.ctors|\.dtors|\.header_info|\.dinit|\.text\S*|\.rodata\S*|\.data)\s+([0-9]+).*",
73+
SIZEDATAREGEXP=r"^(?:\.ram_exchange_data|\.dbg_data|\.sdata|\.sbss|\.data\S*|\.stack|\.bss|\.comment.__use_force_isr_install|\.eh_frame|\.jcr)\s+([0-9]+).*",
74+
SIZECHECKCMD="$SIZETOOL -A -d $SOURCES",
7275
SIZEPRINTCMD='$SIZETOOL -B -d $SOURCES',
7376

7477
UPLOADER="pic32prog",
@@ -91,6 +94,10 @@
9194
CCFLAGS=["-G1024"]
9295
)
9396

97+
# append LD script manually
98+
if "LDSCRIPT_PATH" in env:
99+
del env['LDSCRIPT_PATH']
100+
94101

95102
env.Append(
96103
BUILDERS=dict(
@@ -129,16 +136,8 @@
129136
else:
130137
target_elf = env.BuildProgram()
131138

132-
# Hook: Fix option for LD script
133-
_new_linkflags = []
134-
for f in env['LINKFLAGS']:
135-
if not f.startswith("-Wl,-T"):
136-
_new_linkflags.append(f)
137-
else:
138-
_new_linkflags.append("-Wl,--script=%s" % f[6:])
139-
140-
env.Replace(LINKFLAGS=_new_linkflags)
141139
env.Append(LINKFLAGS=[
140+
"-Wl,--script=%s" % env.BoardConfig().get("build.ldscript", ""),
142141
"-Wl,--script=chipKIT-application-COMMON%s.ld" %
143142
("-MZ" if "MZ" in env.BoardConfig().get("build.mcu", "") else "")
144143
])

examples/arduino-blink/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ board = chipkit_pro_mx7
3737
;framework = arduino
3838
;board = chipkit_pi
3939

40-
[env:chipkit_cmod]
40+
[env:chipkit cmod]
4141
platform = microchippic32
4242
framework = arduino
4343
board = chipkit_cmod

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/platformio/platform-microchippic32.git"
1414
},
15-
"version": "1.5.1",
15+
"version": "1.5.2",
1616
"packageRepositories": [
1717
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1818
"http://dl.platformio.org/packages/manifest.json"

0 commit comments

Comments
 (0)