summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwennmach <wennmach@pkgsrc.org>2003-07-17 19:09:23 +0000
committerwennmach <wennmach@pkgsrc.org>2003-07-17 19:09:23 +0000
commitfb54ce400f0f5dfc27e13f2c3011afc5f706817d (patch)
tree25ad23c1392c615e210c0f530dda2f1d9c5a1652
parent7f512cd63ec133c811663e197e0910d65b350673 (diff)
downloadpkgsrc-fb54ce400f0f5dfc27e13f2c3011afc5f706817d.tar.gz
avrdude - Program for programming the on-chip memory of Atmel AVR CPUs
Submitted by Karl Janmar <karlj@mdstud.chalmers.se> in PR 22139, with several changes by myself. Original package from FreeBSD.
-rw-r--r--cross/avrdude/DESCR5
-rw-r--r--cross/avrdude/Makefile17
-rw-r--r--cross/avrdude/PLIST52
-rw-r--r--cross/avrdude/distinfo10
-rw-r--r--cross/avrdude/patches/patch-aa30
-rw-r--r--cross/avrdude/patches/patch-ab61
-rw-r--r--cross/avrdude/patches/patch-ac13
-rw-r--r--cross/avrdude/patches/patch-ad30
-rw-r--r--cross/avrdude/patches/patch-ae13
-rw-r--r--cross/avrdude/patches/patch-af158
10 files changed, 389 insertions, 0 deletions
diff --git a/cross/avrdude/DESCR b/cross/avrdude/DESCR
new file mode 100644
index 00000000000..528cb6bd51b
--- /dev/null
+++ b/cross/avrdude/DESCR
@@ -0,0 +1,5 @@
+AVRDUDE - AVR Downloader/UploaDEr - is a program for updating the
+flash, eeprom, and fuse bit memories of Atmel AVR microcontrollers.
+
+This package currently only supports chip programmers that attach
+to the serial port (e. g. the STK500).
diff --git a/cross/avrdude/Makefile b/cross/avrdude/Makefile
new file mode 100644
index 00000000000..2d332641dad
--- /dev/null
+++ b/cross/avrdude/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+# FreeBSD Id: ports/devel/avrdude/Makefile,v 1.4 2003/04/19 14:13:25 bsd Exp
+
+DISTNAME= avrdude-4.1.0
+CATEGORIES= cross
+MASTER_SITES= http://savannah.nongnu.org/download/avrdude/stable.pkg/4.1.0/
+
+MAINTAINER= karlj@mdstud.chalmers.se
+HOMEPAGE= http://www.bsdhome.com/avrdude/
+COMMENT= Program for programming the on-chip memory of Atmel AVR CPUs
+
+BUILD_DEPENDS= teTeX>=1.0:../../print/teTeX
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} --disable-versioned-doc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/avrdude/PLIST b/cross/avrdude/PLIST
new file mode 100644
index 00000000000..e33a744db9a
--- /dev/null
+++ b/cross/avrdude/PLIST
@@ -0,0 +1,52 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+bin/avrdude
+etc/avrdude.conf
+man/man1/avrdude.1
+share/doc/avrdude/avrdude.pdf
+share/doc/avrdude/avrdude-html/avrdude.html
+share/doc/avrdude/avrdude-html/avrdude_abt.html
+share/doc/avrdude/avrdude-html/avrdude_ovr.html
+share/doc/avrdude/avrdude-html/avrdude_1.html
+share/doc/avrdude/avrdude-html/avrdude_10.html
+share/doc/avrdude/avrdude-html/avrdude_11.html
+share/doc/avrdude/avrdude-html/avrdude_12.html
+share/doc/avrdude/avrdude-html/avrdude_13.html
+share/doc/avrdude/avrdude-html/avrdude_14.html
+share/doc/avrdude/avrdude-html/avrdude_15.html
+share/doc/avrdude/avrdude-html/avrdude_16.html
+share/doc/avrdude/avrdude-html/avrdude_17.html
+share/doc/avrdude/avrdude-html/avrdude_18.html
+share/doc/avrdude/avrdude-html/avrdude_19.html
+share/doc/avrdude/avrdude-html/avrdude_2.html
+share/doc/avrdude/avrdude-html/avrdude_20.html
+share/doc/avrdude/avrdude-html/avrdude_21.html
+share/doc/avrdude/avrdude-html/avrdude_22.html
+share/doc/avrdude/avrdude-html/avrdude_23.html
+share/doc/avrdude/avrdude-html/avrdude_24.html
+share/doc/avrdude/avrdude-html/avrdude_25.html
+share/doc/avrdude/avrdude-html/avrdude_26.html
+share/doc/avrdude/avrdude-html/avrdude_27.html
+share/doc/avrdude/avrdude-html/avrdude_28.html
+share/doc/avrdude/avrdude-html/avrdude_29.html
+share/doc/avrdude/avrdude-html/avrdude_3.html
+share/doc/avrdude/avrdude-html/avrdude_30.html
+share/doc/avrdude/avrdude-html/avrdude_31.html
+share/doc/avrdude/avrdude-html/avrdude_32.html
+share/doc/avrdude/avrdude-html/avrdude_33.html
+share/doc/avrdude/avrdude-html/avrdude_34.html
+share/doc/avrdude/avrdude-html/avrdude_35.html
+share/doc/avrdude/avrdude-html/avrdude_36.html
+share/doc/avrdude/avrdude-html/avrdude_37.html
+share/doc/avrdude/avrdude-html/avrdude_4.html
+share/doc/avrdude/avrdude-html/avrdude_5.html
+share/doc/avrdude/avrdude-html/avrdude_6.html
+share/doc/avrdude/avrdude-html/avrdude_7.html
+share/doc/avrdude/avrdude-html/avrdude_8.html
+share/doc/avrdude/avrdude-html/avrdude_9.html
+share/doc/avrdude/avrdude-html/avrdude_toc.html
+share/doc/avrdude/avrdude.ps
+@unexec install-info --delete %D/info/avrdude.info %D/info/dir
+info/avrdude.info
+@exec install-info %D/info/avrdude.info %D/info/dir
+@dirrm share/doc/avrdude/avrdude-html
+@dirrm share/doc/avrdude
diff --git a/cross/avrdude/distinfo b/cross/avrdude/distinfo
new file mode 100644
index 00000000000..69384396ea1
--- /dev/null
+++ b/cross/avrdude/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+
+SHA1 (avrdude-4.1.0.tar.gz) = e3d88668ae06713a4d5576c982f32ff909903525
+Size (avrdude-4.1.0.tar.gz) = 327572 bytes
+SHA1 (patch-aa) = 1b7527e8590a098560042ad2dbb5798d162c1462
+SHA1 (patch-ab) = 620d791e8118aeabff5ca10d9e1bc5a2e794b2b6
+SHA1 (patch-ac) = 9fc1969e2db8a04a400ed62292d7da1666e64918
+SHA1 (patch-ad) = 7e3ce331afbf08e9db6a03178c247410e79d820e
+SHA1 (patch-ae) = 96be79ab7aeb1539f175a0e775cf8a536513028e
+SHA1 (patch-af) = 089decf6d74803cfad5a8a5848709f0ab747e03e
diff --git a/cross/avrdude/patches/patch-aa b/cross/avrdude/patches/patch-aa
new file mode 100644
index 00000000000..2c9a3110c24
--- /dev/null
+++ b/cross/avrdude/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+
+--- Makefile.in.org Tue Jul 8 10:04:00 2003
++++ Makefile.in Tue Jul 8 10:03:55 2003
+@@ -190,14 +190,9 @@
+ lists.c \
+ lists.h \
+ main.c \
+- par.c \
+- par.h \
+ pgm.c \
+ pgm.h \
+ pindefs.h \
+- ppi.c \
+- ppi.h \
+- ppiwin.c \
+ serial.h \
+ ser_posix.c \
+ ser_win32.c \
+@@ -221,8 +216,8 @@
+
+ am_avrdude_OBJECTS = config_gram.$(OBJEXT) lexer.$(OBJEXT) avr.$(OBJEXT) \
+ avr910.$(OBJEXT) config.$(OBJEXT) confwin.$(OBJEXT) \
+- fileio.$(OBJEXT) lists.$(OBJEXT) main.$(OBJEXT) par.$(OBJEXT) \
+- pgm.$(OBJEXT) ppi.$(OBJEXT) ppiwin.$(OBJEXT) \
++ fileio.$(OBJEXT) lists.$(OBJEXT) main.$(OBJEXT) \
++ pgm.$(OBJEXT) \
+ ser_posix.$(OBJEXT) ser_win32.$(OBJEXT) stk500.$(OBJEXT) \
+ term.$(OBJEXT)
+ avrdude_OBJECTS = $(am_avrdude_OBJECTS)
diff --git a/cross/avrdude/patches/patch-ab b/cross/avrdude/patches/patch-ab
new file mode 100644
index 00000000000..45dbfa8b7f4
--- /dev/null
+++ b/cross/avrdude/patches/patch-ab
@@ -0,0 +1,61 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+
+--- config_gram.y.org Tue Jul 8 10:06:16 2003
++++ config_gram.y Tue Jul 8 10:08:38 2003
+@@ -87,8 +87,6 @@
+ %token K_MOSI
+ %token K_NUM_PAGES
+ %token K_PAGEL
+-%token K_PAR
+-%token K_PARALLEL
+ %token K_PART
+ %token K_PGMLED
+ %token K_PROGRAMMER
+@@ -276,12 +274,6 @@
+ }
+ } |
+
+- K_TYPE TKN_EQUAL K_PAR {
+- {
+- par_initpgm(current_prog);
+- }
+- } |
+-
+ K_TYPE TKN_EQUAL K_STK500 {
+ {
+ stk500_initpgm(current_prog);
+@@ -388,9 +380,6 @@
+ K_DEDICATED | K_IO
+ ;
+
+-parallel_modes :
+- yesno | K_PSEUDO
+-;
+
+ retry_lines :
+ K_RESET | K_SCK
+@@ -473,24 +462,6 @@
+ free_token($3);
+ } |
+
+- K_PARALLEL TKN_EQUAL parallel_modes
+- {
+- if ($3->primary == K_YES) {
+- current_part->flags |= AVRPART_PARALLELOK;
+- current_part->flags &= ~AVRPART_PSEUDOPARALLEL;
+- }
+- else if ($3->primary == K_NO) {
+- current_part->flags &= ~AVRPART_PARALLELOK;
+- current_part->flags &= ~AVRPART_PSEUDOPARALLEL;
+- }
+- else if ($3->primary == K_PSEUDO) {
+- current_part->flags |= AVRPART_PARALLELOK;
+- current_part->flags |= AVRPART_PSEUDOPARALLEL;
+- }
+-
+-
+- free_token($3);
+- } |
+
+ K_RETRY_PULSE TKN_EQUAL retry_lines
+ {
diff --git a/cross/avrdude/patches/patch-ac b/cross/avrdude/patches/patch-ac
new file mode 100644
index 00000000000..603bad7958a
--- /dev/null
+++ b/cross/avrdude/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+
+--- lexer.l.org Tue Jul 8 10:10:24 2003
++++ lexer.l Tue Jul 8 10:10:41 2003
+@@ -141,8 +141,6 @@
+ page_size { yylval=NULL; return K_PAGE_SIZE; }
+ paged { yylval=NULL; return K_PAGED; }
+ pagel { yylval=NULL; return K_PAGEL; }
+-par { yylval=NULL; return K_PAR; }
+-parallel { yylval=NULL; return K_PARALLEL; }
+ part { yylval=NULL; return K_PART; }
+ pgmled { yylval=NULL; return K_PGMLED; }
+ programmer { yylval=NULL; return K_PROGRAMMER; }
diff --git a/cross/avrdude/patches/patch-ad b/cross/avrdude/patches/patch-ad
new file mode 100644
index 00000000000..4e5f5b03c44
--- /dev/null
+++ b/cross/avrdude/patches/patch-ad
@@ -0,0 +1,30 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+
+--- main.c.org Tue Jul 8 10:15:01 2003
++++ main.c Tue Jul 8 10:16:28 2003
+@@ -103,8 +103,8 @@
+ */
+ int getexitspecs(char *s, int *set, int *clr)
+ {
++ /*
+ char *cp;
+-
+ while ((cp = strtok(s, ","))) {
+ if (strcmp(cp, "reset") == 0) {
+ *clr |= par_getpinmask(pgm->pinno[PIN_AVR_RESET]);
+@@ -123,10 +123,11 @@
+ else {
+ return -1;
+ }
+- s = 0; /* strtok() should be called with the actual string only once */
+- }
++ s = 0; */ /* strtok() should be called with the actual string only once */
++ /* }
+
+- return 0;
++ return 0; */
++ return -1;
+ }
+
+
+
diff --git a/cross/avrdude/patches/patch-ae b/cross/avrdude/patches/patch-ae
new file mode 100644
index 00000000000..390fa3f54d1
--- /dev/null
+++ b/cross/avrdude/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
+
+--- ser_posix.c.org Tue Jul 8 11:11:06 2003
++++ ser_posix.c Tue Jul 8 11:11:22 2003
+@@ -120,7 +120,7 @@
+ /*
+ * open the serial port
+ */
+- fd = open(port, O_RDWR | O_NOCTTY /*| O_NONBLOCK*/);
++ fd = open(port, O_RDWR | O_NOCTTY | O_NONBLOCK);
+ if (fd < 0) {
+ fprintf(stderr, "%s: serial_open(): can't open device \"%s\": %s\n",
+ progname, port, strerror(errno));
diff --git a/cross/avrdude/patches/patch-af b/cross/avrdude/patches/patch-af
new file mode 100644
index 00000000000..5af7e47c74b
--- /dev/null
+++ b/cross/avrdude/patches/patch-af
@@ -0,0 +1,158 @@
+$NetBSD: patch-af,v 1.1.1.1 2003/07/17 19:09:24 wennmach Exp $
+
+--- avrdude.conf.in.org 2003-07-14 23:14:05.000000000 +0200
++++ avrdude.conf.in 2003-07-14 23:15:04.000000000 +0200
+@@ -182,16 +182,16 @@
+ # PROGRAMMER DEFINITIONS
+ #
+
+-programmer
+- id = "bsd";
+- desc = "Brian Dean's Programmer";
+- type = par;
+- vcc = 2, 3, 4, 5;
+- reset = 7;
+- sck = 8;
+- mosi = 9;
+- miso = 10;
+-;
++#programmer
++# id = "bsd";
++# desc = "Brian Dean's Programmer";
++# type = par;
++# vcc = 2, 3, 4, 5;
++# reset = 7;
++# sck = 8;
++# mosi = 9;
++# miso = 10;
++#;
+
+ programmer
+ id = "avrisp";
+@@ -217,69 +217,69 @@
+ type = avr910;
+ ;
+
+-programmer
+- id = "stk200";
+- desc = "STK200";
+- type = par;
+- buff = 4, 5;
+- sck = 6;
+- mosi = 7;
+- reset = 9;
+- miso = 10;
+-;
++#programmer
++# id = "stk200";
++# desc = "STK200";
++# type = par;
++# buff = 4, 5;
++# sck = 6;
++# mosi = 7;
++# reset = 9;
++# miso = 10;
++#;
+
+ # The programming dongle used by the popular Ponyprog
+ # utility. It is almost similar to the STK200 one,
+ # except that there is a LED indicating that the
+ # programming is currently in progress.
+
+-programmer
+- id = "pony-stk200";
+- desc = "Pony Prog STK200";
+- type = par;
+- buff = 4, 5;
+- sck = 6;
+- mosi = 7;
+- reset = 9;
+- miso = 10;
+- pgmled = 8;
+-;
+-
+-programmer
+- id = "dt006";
+- desc = "Dontronics DT006";
+- type = par;
+- reset = 4;
+- sck = 5;
+- mosi = 2;
+- miso = 11;
+-;
+-
+-programmer
+- id = "bascom";
+- desc = "Bascom SAMPLE programming cable";
+- type = par;
+- reset = 4;
+- sck = 5;
+- mosi = 2;
+- miso = 11;
+-;
+-
+-programmer
+- id = "alf";
+- desc = "Tony Friebel's Programmer";
+- type = par;
+- vcc = 2, 3, 4, 5;
+- buff = 6;
+- reset = 7;
+- sck = 8;
+- mosi = 9;
+- miso = 10;
+- errled = 1;
+- rdyled = 14;
+- pgmled = 16;
+- vfyled = 17;
+-;
++#programmer
++# id = "pony-stk200";
++# desc = "Pony Prog STK200";
++# type = par;
++# buff = 4, 5;
++# sck = 6;
++# mosi = 7;
++# reset = 9;
++# miso = 10;
++# pgmled = 8;
++#;
++
++#programmer
++# id = "dt006";
++# desc = "Dontronics DT006";
++# type = par;
++# reset = 4;
++# sck = 5;
++# mosi = 2;
++# miso = 11;
++#;
++
++#programmer
++# id = "bascom";
++# desc = "Bascom SAMPLE programming cable";
++# type = par;
++# reset = 4;
++# sck = 5;
++# mosi = 2;
++# miso = 11;
++#;
++
++#programmer
++# id = "alf";
++# desc = "Tony Friebel's Programmer";
++# type = par;
++# vcc = 2, 3, 4, 5;
++# buff = 6;
++# reset = 7;
++# sck = 8;
++# mosi = 9;
++# miso = 10;
++# errled = 1;
++# rdyled = 14;
++# pgmled = 16;
++# vfyled = 17;
++#;
+
+
+