update to latest teensyloader which supports the teensy2.0 boards

This commit is contained in:
ckuethe 2010-06-26 21:22:00 +00:00
parent 5e98e33da3
commit c5c64e56bb
4 changed files with 43 additions and 13 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2009/04/23 22:37:14 ckuethe Exp $
# $OpenBSD: Makefile,v 1.5 2010/06/26 21:22:00 ckuethe Exp $
COMMENT= AVR microcontroller hardware in-system programmer
DISTNAME= teensyloader-1.03
PKGNAME= ${DISTNAME}p0
DISTNAME= teensy_loader_cli.2.0
PKGNAME= teensyloader-2.0
CATEGORIES= devel
HOMEPAGE= http://www.pjrc.com/teensy/
@ -17,13 +17,15 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
MASTER_SITES= https://www.mainframe.cx/~ckuethe/openbsd/
MASTER_SITES= http://www.pjrc.com/teensy/
CONFIGURE_STYLE= None
WRKDIST=${WRKDIR}/teensy_loader_cli
MAKE_FILE=Makefile.bsd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/teensyloader ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/teensy
${INSTALL_DATA} ${WRKSRC}/*.{hex,asm} ${PREFIX}/share/examples/teensy
${INSTALL_DATA} ${WRKSRC}/*.hex ${PREFIX}/share/examples/teensy
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (teensyloader-1.03.tar.gz) = f9N5jJH1E2EEcBs1Q1H1Pw==
RMD160 (teensyloader-1.03.tar.gz) = UUb6OIsSIdUd+nah6S3YbJZxea4=
SHA1 (teensyloader-1.03.tar.gz) = y79TNgmbetzJPiZwUp6kpZ1csck=
SHA256 (teensyloader-1.03.tar.gz) = lnncwESeFgnNpWSqr2yjstXyhannOR2B3M3EOJXHzrU=
SIZE (teensyloader-1.03.tar.gz) = 18379
MD5 (teensy_loader_cli.2.0.tar.gz) = KTdtzhs3gmyRg5pTz/ddwA==
RMD160 (teensy_loader_cli.2.0.tar.gz) = EYUe3ZpG/EuSkXe4/vVO3VoarFQ=
SHA1 (teensy_loader_cli.2.0.tar.gz) = K0kjHa3HyuY3RasOCwdW74lcy1w=
SHA256 (teensy_loader_cli.2.0.tar.gz) = D/1NS2X+PCvOfvc89ZmwtSebMQH7hDBUzXmw324GepY=
SIZE (teensy_loader_cli.2.0.tar.gz) = 27044

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-Makefile_bsd,v 1.1 2010/06/26 21:22:00 ckuethe Exp $
--- Makefile.bsd.orig Mon Feb 15 18:27:15 2010
+++ Makefile.bsd Mon Feb 15 18:28:31 2010
@@ -1,6 +1,6 @@
-OS ?= FreeBSD
+#OS ?= FreeBSD
#OS ?= NetBSD
-#OS ?= OpenBSD
+OS ?= OpenBSD
CFLAGS ?= -O2 -Wall
CC ?= gcc
@@ -14,8 +14,10 @@ LIBS =
.endif
-teensy_loader_cli: teensy_loader_cli.c
- $(CC) $(CFLAGS) -s -o teensy_loader_cli teensy_loader_cli.c $(LIBS)
+all: teensyloader
+teensyloader: teensy_loader_cli.c
+ $(CC) $(CFLAGS) -s -o teensyloader teensy_loader_cli.c $(LIBS)
+
clean:
- rm -f teensy_loader_cli
+ rm -f teensyloader

View File

@ -1,7 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/28 18:55:09 ckuethe Exp $
@comment $OpenBSD: PLIST,v 1.2 2010/06/26 21:22:00 ckuethe Exp $
@bin bin/teensyloader
share/examples/teensy/
share/examples/teensy/blink_fast.asm
share/examples/teensy/blink_fast.hex
share/examples/teensy/blink_slow.asm
share/examples/teensy/blink_slow.hex
share/examples/teensy/blinky-at90usb1286.hex
share/examples/teensy/blinky-at90usb162.hex
share/examples/teensy/blinky-at90usb646.hex
share/examples/teensy/blinky-atmega32u4.hex