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>
config BR2_PACKAGE_BLUEZ_UTILS_USB
bool "USB support"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
help
USB support
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
config BR2_PACKAGE_LIBFTDI
bool "libftdi"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
help
C++ bindings for libftdi
endif # BR2_PACKAGE_LIBFTDI
+
+comment "libftdi needs a toolchain with thread support"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
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
config BR2_PACKAGE_LIBIQRF
bool "libiqrf"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
help
This library implement specific protocol
libusb library.
https://github.com/nandra/libiqrf
+
+comment "libiqrf needs a toolchain with thread support"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
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
config BR2_PACKAGE_LIBNFC
bool "libnfc"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
help
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
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
config BR2_PACKAGE_OPENOCD
bool "openocd"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBUSB_COMPAT
help
bool "Versaloon-Link JTAG Programmr"
endif # BR2_PACKAGE_OPENOCD
+
+comment "openocd needs a toolchain with thread support"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
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
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
config BR2_PACKAGE_USBUTILS
bool "usbutils"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
select BR2_PACKAGE_LIBUSB
help
USB enumeration utilities
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