aboutsummaryrefslogtreecommitdiff
path: root/sam/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
commit01ed0b315cf4977db73f170f0be599e5656343c5 (patch)
tree03f3954a55f64922ea735a0e3a6048b1a9863932 /sam/platform.txt
parent84349d4f703207386f9c8b992e1cdb636586cbe3 (diff)
BOARDS and ARCH defines from boards.txt
See #308
Diffstat (limited to 'sam/platform.txt')
-rw-r--r--sam/platform.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sam/platform.txt b/sam/platform.txt
index fedb29e..3594610 100644
--- a/sam/platform.txt
+++ b/sam/platform.txt
@@ -30,10 +30,10 @@ compiler.libsam.c.flags="-I{build.system.path}/libsam" "-I{build.system.path}/CM
# ---------------------
## Compile c files
-recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {compiler.libsam.c.flags} {includes} "{source_file}" -o "{object_file}"
+recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} -D{build.board} -DARDUINO_ARCH_{build.arch} {build.extra_flags} {compiler.libsam.c.flags} {includes} "{source_file}" -o "{object_file}"
## Compile c++ files
-recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} {build.extra_flags} {compiler.libsam.c.flags} {includes} "{source_file}" -o "{object_file}"
+recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime.ide.version} -D{build.board} -DARDUINO_ARCH_{build.arch} {build.extra_flags} {compiler.libsam.c.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}"