Browse Source

Fix compilation of attiny828at8_5v and atmega168 BIGBOOT=1

majekw 6 years ago
parent
commit
5d40a2afcc

+ 1 - 1
optiboot/bootloaders/optiboot/Makefile

@@ -381,7 +381,7 @@ atmega168: AVR_FREQ ?= 16000000L
 ifndef BIGBOOT
 atmega168: LDSECTIONS  = -Wl,--section-start=.text=0x3e00 -Wl,--section-start=.version=0x3ffe
 else
-atmeg168: LDSECTIONS  = -Wl,--section-start=.text=0x3c00 -Wl,--section-start=.version=0x3ffe
+atmega168: LDSECTIONS  = -Wl,--section-start=.text=0x3c00 -Wl,--section-start=.version=0x3ffe
 endif
 atmega168: $(PROGRAM)_atmega168.hex
 ifndef PRODUCTION

+ 9 - 9
optiboot/bootloaders/optiboot/Makefile.MCUdude

@@ -115,15 +115,15 @@ endif
 atmega164pa: atmega164p
 
 #ATmega168/A
-atmega168: TARGET = atmega168
-atmega168: MCU_TARGET = atmega168
-atmega168: CFLAGS += $(COMMON_OPTIONS) $(UART_CMD)
-atmega168: AVR_FREQ ?= 16000000L 
-atmega168: LDSECTIONS = -Wl,--section-start=.text=0x3e00 -Wl,--section-start=.version=0x3ffe
-atmega168: $(PROGRAM)_atmega168_UART$(UART)_$(BAUD_RATE)_$(AVR_FREQ).hex
-ifndef PRODUCTION
-atmega168: $(PROGRAM)_atmega168_UART$(UART)_$(BAUD_RATE)_$(AVR_FREQ).lst
-endif
+#atmega168: TARGET = atmega168
+#atmega168: MCU_TARGET = atmega168
+#atmega168: CFLAGS += $(COMMON_OPTIONS) $(UART_CMD)
+#atmega168: AVR_FREQ ?= 16000000L 
+#atmega168: LDSECTIONS = -Wl,--section-start=.text=0x3e00 -Wl,--section-start=.version=0x3ffe
+#atmega168: $(PROGRAM)_atmega168_UART$(UART)_$(BAUD_RATE)_$(AVR_FREQ).hex
+#ifndef PRODUCTION
+#atmega168: $(PROGRAM)_atmega168_UART$(UART)_$(BAUD_RATE)_$(AVR_FREQ).lst
+#endif
 atmega168a: atmega168
 
 #ATmega168P/PA

+ 1 - 1
optiboot/bootloaders/optiboot/Makefile.tiny

@@ -353,7 +353,7 @@ ifndef PRODUCTION
 endif
 
 attiny828at8_5v: 
-	$(MAKE) attiny828at8 AVR_FREQ=8200000L BAUD_RATE=57600
+	$(MAKE) attiny828 AVR_FREQ=8200000L BAUD_RATE=57600
 	mv $(PROGRAM)_attiny828.hex $(PROGRAM)_$@.hex
 ifndef PRODUCTION
 	mv $(PROGRAM)_attiny828.lst $(PROGRAM)_$@.lst