diff options
author | Cristian Maglie <c.maglie@bug.st> | 2015-02-16 14:06:20 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2015-02-16 14:39:55 +0100 |
commit | 2aef2cb108cac05695ca5d2dc9fa3359696254eb (patch) | |
tree | 83387c60b3aaddd0512413819a730976a3b3dc02 | |
parent | 772b40df74188622313906d9f21ced0d16a0c301 (diff) |
"objcopy" recipes are no more tied to "hex" extension
This allow to define specific recipes for every platform
but keeps backward compatibility.
See #2614
-rw-r--r-- | platform.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform.txt b/platform.txt index 04499b0..051bd01 100644 --- a/platform.txt +++ b/platform.txt @@ -61,11 +61,9 @@ recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compil ## Combine gc-sections, archives, and objects recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm -## Create eeprom +## Create output files (.eep and .hex) recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep" - -## Create hex -recipe.objcopy.output.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" +recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" ## Compute size recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" |