From: Keith Packard Date: Thu, 19 Sep 2019 00:10:14 +0000 (-0700) Subject: altos: Add missing build files for avr/attiny devices X-Git-Tag: 1.9.1~1^2~36 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d607cbee5c9b406ef0f4e522c12e56993632cf00 altos: Add missing build files for avr/attiny devices These were sitting in my src directory but not in git Signed-off-by: Keith Packard --- diff --git a/src/attiny/Makefile-attiny.defs b/src/attiny/Makefile-attiny.defs new file mode 100644 index 00000000..8949ba45 --- /dev/null +++ b/src/attiny/Makefile-attiny.defs @@ -0,0 +1,12 @@ +include $(TOPDIR)/avr/Makefile-avr.defs + +vpath % $(TOPDIR)/attiny:$(AO_VPATH) + +MCU=attiny85 +DUDECPUTYPE=t85 +#PROGRAMMER=stk500v2 -P usb +LOADSLOW=-i 32 -B 32 +LOADARG=-p $(DUDECPUTYPE) -c $(PROGRAMMER) -e -U flash:w: + +ATTINY_CFLAGS = -mmcu=$(MCU) -mcall-prologues -DATTINY \ + -I$(TOPDIR)/attiny $(AO_CFLAGS) \ No newline at end of file diff --git a/src/attiny/Makefile.defs b/src/attiny/Makefile.defs new file mode 100644 index 00000000..a3a6d8a6 --- /dev/null +++ b/src/attiny/Makefile.defs @@ -0,0 +1 @@ +include $(TOPDIR)/attiny/Makefile-attiny.defs diff --git a/src/avr/Makefile-avr.defs b/src/avr/Makefile-avr.defs new file mode 100644 index 00000000..48aff48e --- /dev/null +++ b/src/avr/Makefile-avr.defs @@ -0,0 +1,12 @@ +ifndef TOPDIR +TOPDIR=.. +endif + +include $(TOPDIR)/Makefile.defs + +CC=$(AVR_CC) +OBJCOPY=$(AVR_OBJCOPY) +LDSCRIPTS=/usr/lib/avr/lib/ldscripts + +PROGRAMMER=usbtiny +LOADCMD=avrdude