From 8581ce0530fb9daff2edfaed13f0a937d8c24ff9 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 6 Feb 2012 00:51:24 +0100 Subject: Upload size computation is now parametric --- platform.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform.txt b/platform.txt index 9664c20..c47cd8b 100644 --- a/platform.txt +++ b/platform.txt @@ -19,8 +19,7 @@ compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc, compiler.elf2hex.flags=-O ihex -R .eeprom compiler.elf2hex.cmd=avr-objcopy compiler.ldflags= -compiler.upload.cmd= -compiler.upload.flags= +compiler.size.cmd=avr-size # AVR compile patterns # -------------------- @@ -43,6 +42,10 @@ recipe.objcopy.eep.pattern={compiler.path}{compiler.objcopy.cmd} {compiler.objco ## Create hex recipe.objcopy.hex.pattern={compiler.path}{compiler.elf2hex.cmd} {compiler.elf2hex.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}.hex +recipe.size.regex=Total\s+([0-9]+).* + # AVR Uploader/Programmers tools # ------------------- -- cgit v1.2.3-18-g5258