Upload size computation is now parametric
This commit is contained in:
parent
f6d2a612ab
commit
8581ce0530
|
@ -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.flags=-O ihex -R .eeprom
|
||||||
compiler.elf2hex.cmd=avr-objcopy
|
compiler.elf2hex.cmd=avr-objcopy
|
||||||
compiler.ldflags=
|
compiler.ldflags=
|
||||||
compiler.upload.cmd=
|
compiler.size.cmd=avr-size
|
||||||
compiler.upload.flags=
|
|
||||||
|
|
||||||
# AVR compile patterns
|
# AVR compile patterns
|
||||||
# --------------------
|
# --------------------
|
||||||
|
@ -43,6 +42,10 @@ recipe.objcopy.eep.pattern={compiler.path}{compiler.objcopy.cmd} {compiler.objco
|
||||||
## Create hex
|
## 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
|
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
|
# AVR Uploader/Programmers tools
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
Loading…
Reference in New Issue