summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-06-05 03:54:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-06-05 03:54:40 (GMT)
commit0b956320f9883e27fb24cbf5fce8a2da553f1057 (patch)
tree6493f53256608d9d1fc264b1b1d794a08df93fa2 /software
parentf582e49b4cb84b9578443981a2f9624d719c5d08 (diff)
updated avr utils
Diffstat (limited to 'software')
-rw-r--r--software/defines.mk1
-rw-r--r--software/include.mk2
2 files changed, 3 insertions, 0 deletions
diff --git a/software/defines.mk b/software/defines.mk
index cf3a8d2..19ad64f 100644
--- a/software/defines.mk
+++ b/software/defines.mk
@@ -195,6 +195,7 @@ endif
CC = avr-gcc
OBJCOPY = avr-objcopy
AR = avr-ar rcs
+SIZE = avr-size
LIB_DIR = ../lib
diff --git a/software/include.mk b/software/include.mk
index b68db33..83bf275 100644
--- a/software/include.mk
+++ b/software/include.mk
@@ -90,6 +90,8 @@ lib-%.o: $(LIB_DIR)/%.c Makefile
$(ELFFILE): $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=lib%.a)
$(CC) $(LDFLAGS) $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=-l%) -o $@
+ $(SIZE) $@
+ @echo ""
$(HEXFILE): $(ELFFILE)
$(OBJCOPY) -O ihex -R .eeprom -R .fuse -R .lock -R .signature $< $@