aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-03-06 12:49:41 +0100
committerCristian Maglie <c.maglie@bug.st>2013-03-06 12:49:41 +0100
commit8d09b16828d7844c8838c8848f23b15a487764f1 (patch)
tree53ce2d892f5a475949dfa0273f66fe7b4e92ee9d /platform.txt
parent384360b68a29700235ed348489f09163590d01a8 (diff)
Added auto-generation for 'build.board' value in boards.txt.
See #1305.
Diffstat (limited to 'platform.txt')
-rw-r--r--platform.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform.txt b/platform.txt
index a6cd314..53c3162 100644
--- a/platform.txt
+++ b/platform.txt
@@ -27,10 +27,10 @@ build.extra_flags=
# --------------------
## Compile c files
-recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} -D{build.board} -DARDUINO_ARCH_{build.arch} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
+recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
## Compile c++ files
-recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} -D{build.board} -DARDUINO_ARCH_{build.arch} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
+recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
## Create archives
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}"