aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnav Gupta <championswimmer@gmail.com>2015-01-23 08:30:46 +0530
committerFederico Fissore <f.fissore@arduino.cc>2015-05-07 11:57:12 +0200
commit8d9613bc9547eb13f82f1883caa5a2803657d251 (patch)
tree56502cff6cfd83f64c4c7e9cc4e46369e4e10751
parent05245b7a6fb9fe5f34bcb877171766b450bce567 (diff)
update Sketch menu, add Save hex option
* Moving Upload options from "File" menu to "Sketch" menu as those are sketch actions more than file actions. Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
-rw-r--r--platform.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform.txt b/platform.txt
index e549192..f4abb2a 100644
--- a/platform.txt
+++ b/platform.txt
@@ -71,6 +71,10 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.f
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"
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"
+## Save hex
+recipe.hex.tmp_file={build.project_name}.hex
+recipe.hex.save_file={build.project_name}.{build.variant}.hex
+
## Compute size
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).*