Skip to content

Commit

Permalink
Merge branch 'release/v2.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Aug 11, 2018
2 parents 56341e7 + 4e438a3 commit 01cea9e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 28 deletions.
53 changes: 28 additions & 25 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@

ARFLAGS=["rc"],

UPLOADER="lm4flash",
UPLOADCMD='$UPLOADER $SOURCES',

SIZEPROGREGEXP=r"^(?:\.text|\.data|\.rodata|\.text.align|\.ARM.exidx)\s+(\d+).*",
SIZEDATAREGEXP=r"^(?:\.data|\.bss|\.noinit)\s+(\d+).*",
SIZECHECKCMD="$SIZETOOL -A -d $SOURCES",
SIZEPRINTCMD='$SIZETOOL -B -d $SOURCES',

PROGSUFFIX=".elf"
)

# Allow user to override via pre:script
if env.get("PROGNAME", "program") == "program":
env.Replace(PROGNAME="firmware")

env.Append(
ASFLAGS=["-x", "assembler-with-cpp"],

CCFLAGS=[
Expand Down Expand Up @@ -71,31 +87,6 @@

LIBS=["c", "gcc", "m"],

UPLOADER="lm4flash",
UPLOADCMD='$UPLOADER $SOURCES',

SIZEPRINTCMD='$SIZETOOL -B -d $SOURCES',

PROGSUFFIX=".elf"
)

# Allow user to override via pre:script
if env.get("PROGNAME", "program") == "program":
env.Replace(PROGNAME="firmware")

if "BOARD" in env:
env.Append(
CCFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
],
LINKFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
]
)

env.Append(
ASFLAGS=env.get("CCFLAGS", [])[:],

BUILDERS=dict(
ElfToBin=Builder(
action=env.VerboseAction(" ".join([
Expand All @@ -122,6 +113,18 @@
)
)

if "BOARD" in env:
env.Append(
CCFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
],
LINKFLAGS=[
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
]
)

# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])

#
# Target: Build executable and linkable firmware
Expand Down
2 changes: 1 addition & 1 deletion examples/energia-internal-libs/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ platform = titiva
framework = energia
board = lptm4c1230c3pm

[env:lptm4c1294ncpdt]
[env:lptm4c1294ncpdt board]
platform = titiva
framework = energia
board = lptm4c1294ncpdt
2 changes: 1 addition & 1 deletion examples/libopencm3-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ platform = titiva
framework = libopencm3
board = lptm4c1230c3pm

[env:lptm4c1294ncpdt]
[env:lptm4c1294ncpdt board]
platform = titiva
framework = libopencm3
board = lptm4c1294ncpdt
2 changes: 1 addition & 1 deletion platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-titiva.git"
},
"version": "2.0.4",
"version": "2.0.5",
"packageRepositories": [
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
"http://dl.platformio.org/packages/manifest.json"
Expand Down

0 comments on commit 01cea9e

Please sign in to comment.