From d22bc269c9585c189d5d4f195fa2faeb35e7cc7c Mon Sep 17 00:00:00 2001 From: jakllsch Date: Tue, 26 Jan 2010 02:01:47 +0000 Subject: Work around AVRISP mkII sync timeout/retry on NetBSD. I'm guessing this is really a oddity of NetBSD's USB stack, but this seems to work too. Also, hello nb2 and set LICENSE. (This commit bumps most of the patch files only because of pkgdiff timestamp formatting differences. Sigh.) --- cross/avrdude/patches/patch-aa | 4 ++-- cross/avrdude/patches/patch-ab | 4 ++-- cross/avrdude/patches/patch-ac | 4 ++-- cross/avrdude/patches/patch-ad | 4 ++-- cross/avrdude/patches/patch-ae | 4 ++-- cross/avrdude/patches/patch-af | 4 ++-- cross/avrdude/patches/patch-ag | 13 +++++++++++++ 7 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 cross/avrdude/patches/patch-ag (limited to 'cross/avrdude/patches') diff --git a/cross/avrdude/patches/patch-aa b/cross/avrdude/patches/patch-aa index d132afe78ee..ee8d091c189 100644 --- a/cross/avrdude/patches/patch-aa +++ b/cross/avrdude/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.4 2009/08/27 15:34:48 hasso Exp $ +$NetBSD: patch-aa,v 1.5 2010/01/26 02:01:47 jakllsch Exp $ - Fix the SUBDIRS stuff so it actually works right with multiple automake versions. @@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.4 2009/08/27 15:34:48 hasso Exp $ egconfdir instead of hacking the configure script and Makefile.in directly. ---- Makefile.am.orig 2009-03-06 21:09:11 +0100 +--- Makefile.am.orig 2009-03-06 20:09:11.000000000 +0000 +++ Makefile.am @@ -151,7 +151,8 @@ avrdude_SOURCES = \ diff --git a/cross/avrdude/patches/patch-ab b/cross/avrdude/patches/patch-ab index ae1fead3c7f..f33870feda4 100644 --- a/cross/avrdude/patches/patch-ab +++ b/cross/avrdude/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.3 2009/08/27 15:34:48 hasso Exp $ +$NetBSD: patch-ab,v 1.4 2010/01/26 02:01:47 jakllsch Exp $ ---- freebsd_ppi.h.orig 2009-03-06 21:09:11 +0100 +--- freebsd_ppi.h.orig 2009-03-06 20:09:11.000000000 +0000 +++ freebsd_ppi.h @@ -22,7 +22,11 @@ #ifndef freebsd_ppi_h diff --git a/cross/avrdude/patches/patch-ac b/cross/avrdude/patches/patch-ac index 6da2f568407..c13ce12443d 100644 --- a/cross/avrdude/patches/patch-ac +++ b/cross/avrdude/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.4 2009/08/27 15:34:48 hasso Exp $ +$NetBSD: patch-ac,v 1.5 2010/01/26 02:01:47 jakllsch Exp $ the builtin [ on at least solaris doesn't understand -e ---- doc/Makefile.am.orig 2009-03-06 21:09:08 +0100 +--- doc/Makefile.am.orig 2009-03-06 20:09:08.000000000 +0000 +++ doc/Makefile.am @@ -33,7 +33,7 @@ html: avrdude-html/avrdude.html diff --git a/cross/avrdude/patches/patch-ad b/cross/avrdude/patches/patch-ad index 059a4d62d32..4378e8005eb 100644 --- a/cross/avrdude/patches/patch-ad +++ b/cross/avrdude/patches/patch-ad @@ -1,8 +1,8 @@ -$NetBSD: patch-ad,v 1.4 2009/08/27 15:34:48 hasso Exp $ +$NetBSD: patch-ad,v 1.5 2010/01/26 02:01:47 jakllsch Exp $ regen ---- doc/Makefile.in.orig 2009-07-11 00:52:12 +0200 +--- doc/Makefile.in.orig 2009-07-10 22:52:12.000000000 +0000 +++ doc/Makefile.in @@ -617,7 +617,7 @@ html: avrdude-html/avrdude.html diff --git a/cross/avrdude/patches/patch-ae b/cross/avrdude/patches/patch-ae index a6c4310a714..1c58635e90a 100644 --- a/cross/avrdude/patches/patch-ae +++ b/cross/avrdude/patches/patch-ae @@ -1,4 +1,4 @@ -$NetBSD: patch-ae,v 1.4 2009/08/27 15:34:48 hasso Exp $ +$NetBSD: patch-ae,v 1.5 2010/01/26 02:01:47 jakllsch Exp $ - add missing AM_PROG_CC_C_O that automake wants for the yacc sources. @@ -8,7 +8,7 @@ $NetBSD: patch-ae,v 1.4 2009/08/27 15:34:48 hasso Exp $ platforms available and they're not the same for different MACHINE_ARCH's in NetBSD). ---- configure.ac.orig 2009-07-11 00:52:03 +0200 +--- configure.ac.orig 2009-07-10 22:52:03.000000000 +0000 +++ configure.ac @@ -74,6 +74,7 @@ AC_CHECK_HEADERS([ddk/hidsdi.h],,,[#incl diff --git a/cross/avrdude/patches/patch-af b/cross/avrdude/patches/patch-af index 9e9d6618018..416e5ad4b2e 100644 --- a/cross/avrdude/patches/patch-af +++ b/cross/avrdude/patches/patch-af @@ -1,6 +1,6 @@ -$NetBSD: patch-af,v 1.3 2009/08/27 15:34:48 hasso Exp $ +$NetBSD: patch-af,v 1.4 2010/01/26 02:01:47 jakllsch Exp $ ---- ppi.c.orig 2009-03-06 21:09:11 +0100 +--- ppi.c.orig 2009-03-06 20:09:11.000000000 +0000 +++ ppi.c @@ -33,7 +33,7 @@ #include diff --git a/cross/avrdude/patches/patch-ag b/cross/avrdude/patches/patch-ag new file mode 100644 index 00000000000..f0e82863b3b --- /dev/null +++ b/cross/avrdude/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.3 2010/01/26 02:01:47 jakllsch Exp $ +Work around AVRISP mkII sync stalls on NetBSD. +--- stk500v2.c.orig 2009-07-10 22:39:37.000000000 +0000 ++++ stk500v2.c +@@ -635,6 +635,8 @@ retry: + // send the sync command and see if we can get there + buf[0] = CMD_SIGN_ON; + stk500v2_send(pgm, buf, 1); ++ stk500v2_drain(pgm, 0); ++ stk500v2_send(pgm, buf, 1); + + // try to get the response back and see where we got + status = stk500v2_recv(pgm, resp, sizeof(resp)); -- cgit v1.2.3