diff options
-rw-r--r-- | .project | 2 | ||||
-rw-r--r-- | pwm_appl/Makefile | 6 | ||||
-rw-r--r-- | pwm_boot/Makefile | 6 | ||||
-rw-r--r-- | usb_appl/Makefile | 6 | ||||
-rw-r--r-- | usb_boot/Makefile | 6 |
5 files changed, 21 insertions, 5 deletions
@@ -36,7 +36,7 @@ </dictionary> <dictionary> <key>org.eclipse.cdt.make.core.buildLocation</key> - <value>${workspace_loc:/df10ch/TestAppl}</value> + <value>${workspace_loc:/df10ch/pwm_appl}</value> </dictionary> <dictionary> <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> diff --git a/pwm_appl/Makefile b/pwm_appl/Makefile index 0a23034..bbbb5ad 100644 --- a/pwm_appl/Makefile +++ b/pwm_appl/Makefile @@ -57,6 +57,10 @@ HEX_EEPROM_FLAGS = -j .eeprom HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0x01 --no-change-warnings +## AVR size flags +#AVR_SIZE_FLAGS ?= -C --mcu=${MCU} +AVR_SIZE_FLAGS ?= --format=sysv + ## Include Directories INCLUDES = -I. -I.. @@ -98,7 +102,7 @@ $(TARGET): $(OBJECTS) size: ${TARGET} @echo - @avr-size -C --mcu=${MCU} ${TARGET} + @avr-size ${AVR_SIZE_FLAGS} ${TARGET} ## Clean target .PHONY: clean diff --git a/pwm_boot/Makefile b/pwm_boot/Makefile index fb401ea..d316e94 100644 --- a/pwm_boot/Makefile +++ b/pwm_boot/Makefile @@ -56,6 +56,10 @@ HEX_FLASH_FLAGS = -R .eeprom -R .fuse -R .lock -R .signature HEX_EEPROM_FLAGS = -j .eeprom HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" +## AVR size flags +#AVR_SIZE_FLAGS ?= -C --mcu=${MCU} +AVR_SIZE_FLAGS ?= --format=sysv + ## Include Directories INCLUDES = -I. -I.. @@ -94,7 +98,7 @@ $(TARGET): $(OBJECTS) size: ${TARGET} @echo - @avr-size -C --mcu=${MCU} ${TARGET} + @avr-size ${AVR_SIZE_FLAGS} ${TARGET} ## Clean target .PHONY: clean diff --git a/usb_appl/Makefile b/usb_appl/Makefile index 053a027..97a534d 100644 --- a/usb_appl/Makefile +++ b/usb_appl/Makefile @@ -56,6 +56,10 @@ HEX_FLASH_FLAGS = -R .eeprom -R .fuse -R .lock -R .signature HEX_EEPROM_FLAGS = -j .eeprom HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" +## AVR size flags +#AVR_SIZE_FLAGS ?= -C --mcu=${MCU} +AVR_SIZE_FLAGS ?= --format=sysv + ## Include Directories INCLUDES = -I. -I.. -I$(USBDRV) @@ -101,7 +105,7 @@ $(TARGET): $(OBJECTS) size: ${TARGET} @echo - @avr-size -C --mcu=${MCU} ${TARGET} + @avr-size ${AVR_SIZE_FLAGS} ${TARGET} ## Clean target .PHONY: clean diff --git a/usb_boot/Makefile b/usb_boot/Makefile index db3beb5..81e7e8e 100644 --- a/usb_boot/Makefile +++ b/usb_boot/Makefile @@ -57,6 +57,10 @@ HEX_FLASH_FLAGS = -R .eeprom -R .fuse -R .lock -R .signature HEX_EEPROM_FLAGS = -j .eeprom HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" +## AVR size flags +#AVR_SIZE_FLAGS ?= -C --mcu=${MCU} +AVR_SIZE_FLAGS ?= --format=sysv + ## Include Directories INCLUDES = -I. -I.. -I$(USBDRV) @@ -98,7 +102,7 @@ $(TARGET): $(OBJECTS) size: ${TARGET} @echo - @avr-size -C --mcu=${MCU} ${TARGET} + @avr-size ${AVR_SIZE_FLAGS} ${TARGET} ## Clean target .PHONY: clean |