summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@grandegger.com>2017-09-25 08:12:48 +0200
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-09-27 00:15:49 +0200
commit24407cb4dcb63e1836b0545ede8dbb8b68ccd812 (patch)
tree1229252cde9c5a0af3199aca648b94e98a7dda50
parent52dfe8bf2a25aebfe11445f3b67d12b36c96416b (diff)
downloadbuildroot-24407cb4dcb63e1836b0545ede8dbb8b68ccd812.tar.gz
buildroot-24407cb4dcb63e1836b0545ede8dbb8b68ccd812.zip
package/dfu-util: allow to build it for the target as well
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--package/Config.in1
-rw-r--r--package/dfu-util/Config.in13
-rw-r--r--package/dfu-util/dfu-util.mk2
3 files changed, 16 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 6acd0c440e..1580a9e3d6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -391,6 +391,7 @@ endmenu
source "package/dbus-python/Config.in"
source "package/dbus-triggerd/Config.in"
source "package/devmem2/Config.in"
+ source "package/dfu-util/Config.in"
source "package/dmidecode/Config.in"
source "package/dmraid/Config.in"
source "package/dt-utils/Config.in"
diff --git a/package/dfu-util/Config.in b/package/dfu-util/Config.in
new file mode 100644
index 0000000000..2f45fcd6b7
--- /dev/null
+++ b/package/dfu-util/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_DFU_UTIL
+ bool "dfu-util"
+ select BR2_PACKAGE_LIBUSB
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ 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.sourceforge.net/
+
+comment "dfu-util needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/dfu-util/dfu-util.mk b/package/dfu-util/dfu-util.mk
index c494485087..5e8ba5a8f2 100644
--- a/package/dfu-util/dfu-util.mk
+++ b/package/dfu-util/dfu-util.mk
@@ -9,6 +9,8 @@ DFU_UTIL_SITE = http://dfu-util.sourceforge.net/releases
DFU_UTIL_LICENSE = GPL-2.0+
DFU_UTIL_LICENSE_FILES = COPYING
+DFU_UTIL_DEPENDENCIES = libusb
HOST_DFU_UTIL_DEPENDENCIES = host-libusb
+$(eval $(autotools-package))
$(eval $(host-autotools-package))
OpenPOWER on IntegriCloud