aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-02-11 19:31:39 +0100
committerCristian Maglie <c.maglie@bug.st>2013-02-11 19:43:04 +0100
commit254ad52151496d35b98dedc87f4dbfda114c800f (patch)
tree1ad8d6d4381b44d0c6ab3d235c48928b2d99143e /platform.txt
parentc6287dd6ac33544179a6544b8f3f55a396ec6608 (diff)
BOARDS and ARCH defines from boards.txt
See #308
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}"