Update to the latest release. Tested with SparkCore.

OK ian@
This commit is contained in:
abieber 2014-10-21 15:08:51 +00:00
parent 0683d0cc1e
commit f3e2aba05b
4 changed files with 7 additions and 26 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.11 2013/03/11 01:30:26 espie Exp $
# $OpenBSD: Makefile,v 1.12 2014/10/21 15:08:51 abieber Exp $
COMMENT = device firmware update (DFU) USB programmer
DISTNAME = dfu-util-0.3
REVISION = 0
DISTNAME = dfu-util-0.8
CATEGORIES = comms

View File

@ -1,5 +1,2 @@
MD5 (dfu-util-0.3.tar.gz) = qnavP+9wDNc1BXRVgGhfTg==
RMD160 (dfu-util-0.3.tar.gz) = PAkZKLwk5evoiXJN7Hsapsq7PKs=
SHA1 (dfu-util-0.3.tar.gz) = qdqUu1DqIUWiKEIzQLhzAnpV9Y4=
SHA256 (dfu-util-0.3.tar.gz) = RC7MqoVCH7AICYBkzt5jNMAtqYNksxIGSw+bJf9O9pM=
SIZE (dfu-util-0.3.tar.gz) = 105209
SHA256 (dfu-util-0.8.tar.gz) = Vcvem+EqISvYS86dHmOUHZoWE57Q1JEkATZ+uhUC8Fg=
SIZE (dfu-util-0.8.tar.gz) = 129229

View File

@ -1,17 +0,0 @@
$OpenBSD: patch-src_main_c,v 1.2 2011/03/02 06:31:35 jasper Exp $
From Bug 672 in OpenMoko via Simon Moore
--- src/main.c.orig Wed Feb 16 15:36:44 2011
+++ src/main.c Wed Feb 16 15:36:47 2011
@@ -103,8 +103,8 @@ static int find_dfu_if(struct usb_device *dev, int (*h
memset(dfu_if, 0, sizeof(*dfu_if));
- for (cfg_idx = 0; cfg_idx < dev->descriptor.bNumConfigurations;
- cfg_idx++) {
+ for (cfg_idx = 0; NULL != dev->config &&
+ cfg_idx < dev->descriptor.bNumConfigurations; cfg_idx++) {
cfg = &dev->config[cfg_idx];
/* in some cases, noticably FreeBSD if uid != 0,
* the configuration descriptors are empty */

View File

@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/02/08 22:32:40 ian Exp $
@comment $OpenBSD: PLIST,v 1.2 2014/10/21 15:08:51 abieber Exp $
@bin bin/dfu-prefix
@bin bin/dfu-suffix
@bin bin/dfu-util
@comment bin/dfu-util_static
@man man/man1/dfu-util.1