imx-usb-loader: propagate libusb dependency
authorBaruch Siach <baruch@tkos.co.il>
Wed, 6 Jun 2018 20:04:39 +0000 (23:04 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 6 Jun 2018 20:12:20 +0000 (22:12 +0200)
Avoid select of libusb when the toolchain does not support threads.

Fixes:
http://autobuild.buildroot.net/results/a21/a212ee3e5ec174f4e6e7d582f777325dac035bfd/

Cc: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/imx-usb-loader/Config.in

index 6f083f34d12a976f5941d8ecf508310081297f5e..1cc0dd8c25e79582528a790ab047be5049c7e732 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_IMX_USB_LOADER
        bool "imx-usb-loader"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
        select BR2_PACKAGE_LIBUSB
        help
          This package contains tools to download and execute code
@@ -7,3 +8,6 @@ config BR2_PACKAGE_IMX_USB_LOADER
          Serial Download Protocol.
 
          https://github.com/boundarydevices/imx_usb_loader
+
+comment "imx-usb-loader needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS