altos: Add missing build files for avr/attiny devices
authorKeith Packard <keithp@keithp.com>
Thu, 19 Sep 2019 00:10:14 +0000 (17:10 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Sep 2019 00:10:14 +0000 (17:10 -0700)
These were sitting in my src directory but not in git

Signed-off-by: Keith Packard <keithp@keithp.com>
src/attiny/Makefile-attiny.defs [new file with mode: 0644]
src/attiny/Makefile.defs [new file with mode: 0644]
src/avr/Makefile-avr.defs [new file with mode: 0644]

diff --git a/src/attiny/Makefile-attiny.defs b/src/attiny/Makefile-attiny.defs
new file mode 100644 (file)
index 0000000..8949ba4
--- /dev/null
@@ -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 (file)
index 0000000..a3a6d8a
--- /dev/null
@@ -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 (file)
index 0000000..48aff48
--- /dev/null
@@ -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