determined the SRAM requirements as part of the build process (requires ruby)

This commit is contained in:
Simen Svale Skogsrud 2011-01-14 19:17:06 +01:00
parent 7327b82585
commit d89b86d3bf

View File

@ -79,6 +79,7 @@ main.elf: $(OBJECTS)
grbl.hex: main.elf
rm -f grbl.hex
avr-objcopy -j .text -j .data -O ihex main.elf grbl.hex
avr-objdump -h main.elf | grep .bss | ruby -e 'puts "\n\n--- Requires %s bytes of SRAM" % STDIN.read.match(/0[0-9a-f]+\s/)[0].to_i(16)'
avr-size *.hex *.elf *.o
# If you have an EEPROM section, you must also create a hex file for the
# EEPROM and add it to the "flash" target.