Patchwork dfu-util: new package

login
register
mail settings
Submitter Gregory Hermant
Date July 20, 2012, 4:06 p.m.
Message ID <500981F4.7020007@calao-systems.com>
Download mbox | patch
Permalink /patch/172307/
State Accepted
Headers show

Comments

Gregory Hermant - July 20, 2012, 4:06 p.m.
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
---
 package/Config.in.host          |    1 +
 package/dfu-util/Config.in.host |    8 ++++++++
 package/dfu-util/dfu-util.mk    |   12 ++++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 package/dfu-util/Config.in.host
 create mode 100644 package/dfu-util/dfu-util.mk
Thomas Petazzoni - July 20, 2012, 6:07 p.m.
Le Fri, 20 Jul 2012 18:06:12 +0200,
gregory hermant <gregory.hermant@calao-systems.com> a écrit :

> Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>

Applied, thanks, with a few minor fixes (see below)

> +DFU_UTIL_VERSION:=0.6

We prefer '=' instead of ':=' these days.

> +DFU_UTIL_SOURCE = dfu-util-$(DFU_UTIL_VERSION).tar.gz
> +DFU_UTIL_SITE = http://dfu-util.gnumonks.org/releases/
> +
> +HOST_DFU_UTIL_DEPENDENCIES = host-libusb
> +
> +$(eval $(call AUTOTARGETS,host))

Since the beginning of the week, this should now be:

$(eval $(host-autotools-package))

I've made those fixes before committing.

Thanks,

Thomas

Patch

diff --git a/package/Config.in.host b/package/Config.in.host
index 9fcfede..79050f2 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,5 +1,6 @@ 
 menu "Host utilities"
 
+source "package/dfu-util/Config.in.host"
 source "package/lpc3250loader/Config.in.host"
 source "package/omap-u-boot-utils/Config.in.host"
 source "package/openocd/Config.in.host"
diff --git a/package/dfu-util/Config.in.host b/package/dfu-util/Config.in.host
new file mode 100644
index 0000000..cfeebdc
--- /dev/null
+++ b/package/dfu-util/Config.in.host
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_HOST_DFU_UTIL
+	bool "host dfu-util"
+	help
+	  Dfu-util is the host side implementation of the DFU 1.0 
+	  specification of the USB forum. DFU is intended to download
+	  and upload firmware to devices connected over USB. 
+
+	  http://dfu-util.gnumonks.org/
diff --git a/package/dfu-util/dfu-util.mk b/package/dfu-util/dfu-util.mk
new file mode 100644
index 0000000..0ac7533
--- /dev/null
+++ b/package/dfu-util/dfu-util.mk
@@ -0,0 +1,12 @@ 
+#############################################################
+#
+# dfu-util
+#
+#############################################################
+DFU_UTIL_VERSION:=0.6
+DFU_UTIL_SOURCE = dfu-util-$(DFU_UTIL_VERSION).tar.gz
+DFU_UTIL_SITE = http://dfu-util.gnumonks.org/releases/
+
+HOST_DFU_UTIL_DEPENDENCIES = host-libusb
+
+$(eval $(call AUTOTARGETS,host))