From 2bd7cfae95d0689c5a38f6c58f9a902dd79787a9 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 26 Aug 2012 20:47:03 +0000 Subject: [PATCH] Issue 108 fixed --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 4d108b517..853d95569 100644 --- a/src/Makefile +++ b/src/Makefile @@ -709,7 +709,9 @@ end: ifeq ($(PCB), ARM) ELFSIZE = $(SIZE) $(TARGET).elf else - ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf + MCU_FLAG = $(shell $(SIZE) --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) ) + FORMAT_FLAG = $(shell $(SIZE) --help | grep -- --format=.*avr > /dev/null && echo --format=avr ) + ELFSIZE = $(SIZE) $(MCU_FLAG) $(FORMAT_FLAG) $(TARGET).elf endif sizebefore: