diff options
author | Cristian Maglie <c.maglie@bug.st> | 2012-02-06 00:51:24 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2012-02-06 00:51:24 +0100 |
commit | 8581ce0530fb9daff2edfaed13f0a937d8c24ff9 (patch) | |
tree | be6285688ede93a09cb6f4d8ed16f738b435b7b6 /platform.txt | |
parent | f6d2a612ab9995d9bd89d1978852adb709a76df7 (diff) |
Upload size computation is now parametric
Diffstat (limited to 'platform.txt')
-rw-r--r-- | platform.txt | 7 |
1 files 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 # ------------------- |