aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-02-11 19:53:54 +0100
committerCristian Maglie <c.maglie@bug.st>2013-02-11 19:53:54 +0100
commit93599f4b1d8b18786a67847c95e4c9e4da52ca97 (patch)
tree1ad8d6d4381b44d0c6ab3d235c48928b2d99143e /platform.txt
parent260753161552af8a2ef757a16b4ff608ca8348db (diff)
parent254ad52151496d35b98dedc87f4dbfda114c800f (diff)
Added boards and arch defines.
Merge branch 'boards_defines' into lib-1.5
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 d439ddd..a6cd314 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} {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} -D{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} {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} -D{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}"