|
@@ -18,7 +18,7 @@ atmega88: TARGET = atmega88
|
|
|
atmega88: MCU_TARGET = atmega88
|
|
|
atmega88: CFLAGS += $(COMMON_OPTIONS)
|
|
|
atmega88: AVR_FREQ ?= 16000000L
|
|
|
-atmega88: LDSECTIONS = -Wl,--section-start=.text=0x1e00 -Wl,--section-start=.version=0x1ffe
|
|
|
+atmega88: LDSECTIONS = -Wl,--section-start=.text=0x1e00 -Wl,--section-start=.version=0x1ffe -Wl,--gc-sections -Wl,--undefined=optiboot_version
|
|
|
atmega88: $(PROGRAM)_atmega88.hex
|
|
|
atmega88: $(PROGRAM)_atmega88.lst
|
|
|
|
|
@@ -91,8 +91,8 @@ atmega32_isp: isp
|
|
|
#
|
|
|
attiny84: TARGET = attiny84
|
|
|
attiny84: MCU_TARGET = attiny84
|
|
|
-attiny84: CFLAGS += $(COMMON_OPTIONS) -DSOFT_UART -DVIRTUAL_BOOT_PARTITION
|
|
|
-attiny84: LDSECTIONS = -Wl,--section-start=.text=0x1d00 -Wl,--section-start=.version=0x1ffe
|
|
|
+attiny84: CFLAGS += $(COMMON_OPTIONS) -DSOFT_UART -DVIRTUAL_BOOT_PARTITION -Dsave_vect_num=4
|
|
|
+attiny84: LDSECTIONS = -Wl,--section-start=.text=0x1c00 -Wl,--section-start=.version=0x1ffe -Wl,--gc-sections -Wl,--undefined=optiboot_version
|
|
|
attiny84: $(PROGRAM)_attiny84.hex
|
|
|
attiny84: $(PROGRAM)_attiny84.lst
|
|
|
|