libusb: needs thread support
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 28 Jun 2012 01:35:25 +0000 (22:35 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Jul 2012 19:27:10 +0000 (21:27 +0200)
libusb needs thread support, and so do other packages that depend on it.

[thomas.petazzoni@free-electrons.com: adds threads dependency to
libnfc-llp, which selects libnfc.]

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/bluez_utils/Config.in
package/libfreefare/Config.in
package/libftdi/Config.in
package/libhid/Config.in
package/libiqrf/Config.in
package/libnfc-llcp/Config.in
package/libnfc/Config.in
package/libusb/Config.in
package/openocd/Config.in
package/usb_modeswitch/Config.in
package/usbutils/Config.in

index f5a02d6a4b97d18dcfc1ae93dce92a8f1f3300bd..d63284d26b967440b8f5bcf4531536cb8adff821 100644 (file)
@@ -25,6 +25,7 @@ config BR2_PACKAGE_BLUEZ_UTILS_AUDIO
 
 config BR2_PACKAGE_BLUEZ_UTILS_USB
        bool "USB support"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        help
          USB support
index 13a8630d34bd909c4c7e42950d7724768b5c874a..68770002ee128556a7cee15ad4ad341337d6db91 100644 (file)
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBFREEFARE
        bool "libfreefare"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_OPENSSL
        select BR2_PACKAGE_LIBNFC
        help
          Library for high level manipulation of MIFARE cards.
 
          http://code.google.com/p/nfc-tools/wiki/libfreefare
+
+comment "libfreefare needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index e334d14279ad72fda398bb7bbb1d15665e5584d5..48e9ceb23558f4f56d62f0dafa584dc954c7f3be 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBFTDI
        bool "libftdi"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        select BR2_PACKAGE_LIBUSB_COMPAT
        help
@@ -16,3 +17,6 @@ config BR2_PACKAGE_LIBTFDI_CPP
          C++ bindings for libftdi
 
 endif # BR2_PACKAGE_LIBFTDI
+
+comment "libftdi needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index 73ff4b7498f08b2940521222e63ad22c5a50f64c..093b98fcb98099c4d4383deccc357a012e05a0ac 100644 (file)
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBHID
        bool "libhid"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        select BR2_PACKAGE_LIBUSB_COMPAT
        help
          Userspace library for accessing USB HID devices
 
          http://libhid.alioth.debian.org
+
+comment "libhid needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index aa25010979609481c03a120fa891d293aec9090d..7222536607fc7e6478b48a534434cf53928a4741 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBIQRF
        bool "libiqrf"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        help
          This library implement specific protocol
@@ -8,3 +9,6 @@ config BR2_PACKAGE_LIBIQRF
          libusb library.
 
          https://github.com/nandra/libiqrf
+
+comment "libiqrf needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index d59976a69696021304856bb7f6c90db006a5b852..f557926715315fd35884522dc5342f90133ae450 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBNFC_LLCP
        bool "libnfc-llcp"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBNFC
        help
          Library extending libnfc with support for Logical Link Control
index 3d67d58f32e318f1bbd5bb030722252c4fe5f781..159578f6a14e2a6526c40f1471a2814b1358f668 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBNFC
        bool "libnfc"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        select BR2_PACKAGE_LIBUSB_COMPAT
        help
@@ -11,3 +12,6 @@ config BR2_PACKAGE_LIBNFC_EXAMPLES
        bool "build libnfc examples"
        depends on BR2_PACKAGE_LIBNFC
        select BR2_PACKAGE_READLINE
+
+comment "libnfc needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index 7f7276fed8817c61699c8676c39d3e829358d131..2eed3fa963794a33b529e8683b9cb5cae06dc8ca 100644 (file)
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_LIBUSB
        bool "libusb"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        help
          Userspace library for accessing USB devices
 
          http://libusb.sourceforge.net/
+
+comment "libusb needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index f67c0a8412e49637e920b0f28b23bc4ca729bf51..4ea66a5b9a4e78325161dabbf79512199abba4d5 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_OPENOCD
        bool "openocd"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        select BR2_PACKAGE_LIBUSB_COMPAT
        help
@@ -27,3 +28,6 @@ config BR2_PACKAGE_OPENOCD_VSLLINK
        bool "Versaloon-Link JTAG Programmr"
 
 endif # BR2_PACKAGE_OPENOCD
+
+comment "openocd needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index ae10a55501f00a2f5c1f3f52d2a3c348c28d76b3..a27b3ee43edc8b104d1a24efeec995805a6e4ba8 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_USB_MODESWITCH
        bool "usb_modeswitch"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        select BR2_PACKAGE_LIBUSB_COMPAT
        help
@@ -7,3 +8,6 @@ config BR2_PACKAGE_USB_MODESWITCH
          Used to switch mode on multiple-function devices
 
          http://www.draisberghof.de/usb_modeswitch/
+
+comment "usb_modeswitch needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
index 23004d9528566f5e24f06251fa39a67f71c76b06..fd9926c4bdde7245f6ec3ff0834480b7904498e0 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_USBUTILS
        bool "usbutils"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        help
          USB enumeration utilities
@@ -15,3 +16,6 @@ config BR2_PACKAGE_USBUTILS_ZLIB
          This makes the data file smaller if you're not using a compressed
          filesystem, but it also makes lsusb slower since it has
          to decompress the file every time it's run.
+
+comment "usbutils needs a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS