avrdude: remove renaming of ATmega1281 to 128 for old avrdude versions
[aversive.git] / mk / aversive_project.mk
index 8e56130..f0f6eb9 100644 (file)
@@ -69,7 +69,8 @@ ifeq ($(HOST),avr)
 #    -ahlms:  create assembler listing
 ALL_CFLAGS += -Wa,-adhlns=$(addprefix compiler_files/,$(<:.c=.$(HOST).lst))
 else
 #    -ahlms:  create assembler listing
 ALL_CFLAGS += -Wa,-adhlns=$(addprefix compiler_files/,$(<:.c=.$(HOST).lst))
 else
-ALL_CFLAGS +=
+ALL_CFLAGS += $(PTHREAD_CFLAGS)
+
 endif
 
 
 endif
 
 
@@ -107,12 +108,7 @@ endif
 LDFLAGS += $(MATH_LIB)
 
 
 LDFLAGS += $(MATH_LIB)
 
 
-# AVRDUDE does not know the ATMEGA1281 for now, consider it a 128.
-ifeq ($(MCU),atmega1281)
-AVRDUDE_MCU = atmega128
-else
 AVRDUDE_MCU = $(MCU)
 AVRDUDE_MCU = $(MCU)
-endif
 
 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).$(FORMAT_EXTENSION)
 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
 
 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).$(FORMAT_EXTENSION)
 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep