libusb: disable on avr32
PATCH v3 1/1 libusb: disable on avr32
From: Simon Dawson <[email protected]>
For target architecture avr32, the gpsd package fails to build when libusb is selected. The following autobuild failure illustrates the problem.
http://autobuild.buildroot.net/results/aa3d4763a0e90c995bc8431cf345730ee22e65a1/build-end.log
The issue is that libusb requires timerfd_settime and timerfd_create, but the underlying syscalls are not implemented on avr32.
This patch disables the libusb package for the avr32 target architecture.
This will also fix autobuild failures such as the following
http://autobuild.buildroot.net/results/1a17810c2183e389244143dea55b0241c62c0bee/build-end.log
In this case, the pcsc-lite package fails to build on the avr32 architecture, due to the dependency on libusb.
---
v3: Improved dependency information for bluez support in the libedbus package
v2: Handle reverse dependencies of libusb, as suggested by Peter Korsgaard
package/ccid/Config.in | 4 ++-- package/efl/libedbus/Config.in | 1 + package/libfreefare/Config.in | 4 ++-- package/libftdi/Config.in | 4 ++-- package/libhid/Config.in | 3 +-- package/libiqrf/Config.in | 4 ++-- package/libnfc-llcp/Config.in | 5 ++++- package/libnfc/Config.in | 4 ++-- package/libusb/Config.in | 3 ++- package/openocd/Config.in | 4 ++-- package/pcsc-lite/Config.in | 1 + package/python-nfc/Config.in | 4 ++++ package/sconeserver/Config.in | 2 ++ package/usb_modeswitch/Config.in | 4 ++-- package/usb_modeswitch_data/Config.in | 4 ++++ package/usbutils/Config.in | 4 ++-- 16 files changed, 35 insertions(+), 20 deletions(-)
package/ccid/Config.in +2 -2
@@ -2,11 +2,11 @@ config BR2_PACKAGE_CCID bool "ccid" select BR2_PACKAGE_PCSC_LITE select BR2_PACKAGE_LIBUSB - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb help PC/SC driver for USB CCID smart card readers http://pcsclite.alioth.debian.org/ccid.html comment "ccid needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/efl/libedbus/Config.in +1 -0
@@ -15,6 +15,7 @@ if BR2_PACKAGE_LIBEDBUS config BR2_PACKAGE_LIBEDBUS_BLUEZ bool "bluez support" + depends on !BR2_avr32 && BR2_USE_WCHAR # bluez-utils select BR2_PACKAGE_BLUEZ_UTILS help Bluetooth support.
package/libfreefare/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBFREEFARE bool "libfreefare" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_LIBNFC help
@@ -9,4 +9,4 @@ config BR2_PACKAGE_LIBFREEFARE http://code.google.com/p/nfc-tools/wiki/libfreefare comment "libfreefare needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/libftdi/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBFTDI bool "libftdi" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
@@ -19,4 +19,4 @@ config BR2_PACKAGE_LIBTFDI_CPP endif # BR2_PACKAGE_LIBFTDI comment "libftdi needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/libhid/Config.in +1 -2
@@ -1,7 +1,6 @@ config BR2_PACKAGE_LIBHID bool "libhid" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb - depends on !BR2_avr32 # timerfd not in uClibc-0.9.31 + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
package/libiqrf/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBIQRF bool "libiqrf" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB help This library implement specific protocol
@@ -11,4 +11,4 @@ config BR2_PACKAGE_LIBIQRF https://github.com/nandra/libiqrf comment "libiqrf needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/libnfc-llcp/Config.in +4 -1
@@ -1,9 +1,12 @@ config BR2_PACKAGE_LIBNFC_LLCP bool "libnfc-llcp" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBNFC help Library extending libnfc with support for Logical Link Control Protocol. http://code.google.com/p/nfc-tools/source/browse/trunk/libnfc-llcp/ + +comment "libnfc-llcp needs a toolchain with thread support" + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/libnfc/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBNFC bool "libnfc" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
@@ -14,4 +14,4 @@ config BR2_PACKAGE_LIBNFC_EXAMPLES select BR2_PACKAGE_READLINE comment "libnfc needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/libusb/Config.in +2 -1
@@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBUSB bool "libusb" + depends on !BR2_avr32 # timerfd not in uClibc-0.9.31 depends on BR2_TOOLCHAIN_HAS_THREADS help Userspace library for accessing USB devices
@@ -7,4 +8,4 @@ config BR2_PACKAGE_LIBUSB http://libusb.sourceforge.net/ comment "libusb needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/openocd/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_OPENOCD bool "openocd" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
@@ -30,4 +30,4 @@ config BR2_PACKAGE_OPENOCD_VSLLINK endif # BR2_PACKAGE_OPENOCD comment "openocd needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/pcsc-lite/Config.in +1 -0
@@ -11,6 +11,7 @@ if BR2_PACKAGE_PCSC_LITE config BR2_PACKAGE_PCSC_LITE_FORCE_LIBUSB bool "use libusb" depends on !BR2_PACKAGE_UDEV + depends on !BR2_avr32 # libusb select BR2_PACKAGE_LIBUSB help Select Y if you want to support usb smart card readers.
package/python-nfc/Config.in +4 -0
@@ -1,9 +1,13 @@ config BR2_PACKAGE_PYTHON_NFC bool "python-nfc" depends on BR2_PACKAGE_PYTHON + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help Python module for near field communication. https://launchpad.net/nfcpy + +comment "python-nfc needs a toolchain with thread support" + depends on BR2_PACKAGE_PYTHON && !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/sconeserver/Config.in +2 -0
@@ -38,6 +38,8 @@ config BR2_PACKAGE_SCONESERVER_MYSQL config BR2_PACKAGE_SCONESERVER_BLUETOOTH bool "bluetooth" + depends on !BR2_avr32 && BR2_USE_WCHAR && \ + BR2_TOOLCHAIN_HAS_THREADS # bluez-utils select BR2_PACKAGE_BLUEZ_UTILS help Bluetooth module for Sconeserver
package/usb_modeswitch/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_USB_MODESWITCH bool "usb_modeswitch" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
@@ -10,4 +10,4 @@ config BR2_PACKAGE_USB_MODESWITCH http://www.draisberghof.de/usb_modeswitch/ comment "usb_modeswitch needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/usb_modeswitch_data/Config.in +4 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_USB_MODESWITCH_DATA bool "usb_modeswitch_data" + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_USB_MODESWITCH # tcl is a runtime dependency select BR2_PACKAGE_TCL
@@ -10,3 +11,6 @@ config BR2_PACKAGE_USB_MODESWITCH_DATA function automatically http://www.draisberghof.de/usb_modeswitch/ + +comment "usb_modeswitch_data needs a toolchain with thread support" + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
package/usbutils/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_USBUTILS bool "usbutils" - depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on !BR2_avr32 && BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB help USB enumeration utilities
@@ -18,4 +18,4 @@ config BR2_PACKAGE_USBUTILS_ZLIB to decompress the file every time it's run. comment "usbutils needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
Signature · 1 line
1.7.10.4
PATCH v3 1/1 libusb: disable on avr32
Hi Simon,
Quoted 21 lines · spdawson at gmail.com
From: Simon Dawson <[email protected]>
For target architecture avr32, the gpsd package fails to build when libusb is selected. The following autobuild failure illustrates the problem.
http://autobuild.buildroot.net/results/aa3d4763a0e90c995bc8431cf345730ee22e65a1/build-end.log
The issue is that libusb requires
timerfd_settimeandtimerfd_create, but the underlying syscalls are not implemented on avr32.This patch disables the libusb package for the avr32 target architecture.
This will also fix autobuild failures such as the following
http://autobuild.buildroot.net/results/1a17810c2183e389244143dea55b0241c62c0bee/build-end.log
In this case, the pcsc-lite package fails to build on the avr32 architecture, due to the dependency on libusb.
Signed-off-by Simon Dawson <[email protected]>---
[...]
package/ccid/Config.in config BR2_PACKAGE_CCID · line 12
Quoted 5 lines
package/ccid/Config.in +1
-1http://pcsclite.alioth.debian.org/ccid.html comment "ccid needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
Showing this comment when BR2_avr32 is enabled is not very helpful, IMHO, especially when the toolchain does have threads support.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v3 1/1 libusb: disable on avr32
Hi Simon,
Quoted 25 lines · Baruch Siach
Quoted 21 lines · spdawson at gmail.com
From: Simon Dawson <[email protected]>
For target architecture avr32, the gpsd package fails to build when libusb is selected. The following autobuild failure illustrates the problem.
http://autobuild.buildroot.net/results/aa3d4763a0e90c995bc8431cf345730ee22e65a1/build-end.log
The issue is that libusb requires
timerfd_settimeandtimerfd_create, but the underlying syscalls are not implemented on avr32.This patch disables the libusb package for the avr32 target architecture.
This will also fix autobuild failures such as the following
http://autobuild.buildroot.net/results/1a17810c2183e389244143dea55b0241c62c0bee/build-end.log
In this case, the pcsc-lite package fails to build on the avr32 architecture, due to the dependency on libusb.
Signed-off-by Simon Dawson <[email protected]>---
[...]
Quoted 8 lines
package/ccid/Config.in config BR2_PACKAGE_CCID · line 12
Quoted 5 lines
package/ccid/Config.in +1
-1http://pcsclite.alioth.debian.org/ccid.html comment "ccid needs a toolchain with thread support" - depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32Showing this comment when
BR2_avr32is enabled is not very helpful, IMHO, especially when the toolchain does have threads support.
Replying to myself: was the intension here to say
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_avr32
? Otherwise it doesn't make much sense either. Or am I missing something here?
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH v3 1/1 libusb: disable on avr32
Hi Baruch.
Quoted 4 lines · Baruch Siach
Quoted 4 lines
Quoted 3 lines
comment "ccid needs a toolchain with thread support"
(quoted diff) +1
-1- depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32
Quoted 8 lines
Quoted 2 lines
Showing this comment when
BR2_avr32is enabled is not very helpful, IMHO, especially when the toolchain does have threads support.Replying to myself: was the intension here to say
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_avr32? Otherwise it doesn't make much sense either. Or am I missing something here?
The ccid package is unavailable for avr32, and requires thread support in the toolchain. However, it is my understanding that current "policy" in Buildroot is not to display comments for packages that are not available for the currently-selected target architecture. That is why the thread-related comment is only visible if the target architecture is not avr32.
Simon.
PATCH v3 1/1 libusb: disable on avr32
Hi Simon,
Quoted 12 lines · Simon Dawson
Quoted 11 lines · Baruch Siach
Quoted 6 lines
Review
Quoted 3 lines
comment "ccid needs a toolchain with thread support"
(quoted diff) +1
-1- depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS && !BR2_avr32Showing this comment when
BR2_avr32is enabled is not very helpful, IMHO, especially when the toolchain does have threads support.Replying to myself: was the intension here to say
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_avr32
Quoted 8 lines
Quoted 1 line
? Otherwise it doesn't make much sense either. Or am I missing something here?
The ccid package is unavailable for avr32, and requires thread support in the toolchain. However, it is my understanding that current "policy" in Buildroot is not to display comments for packages that are not available for the currently-selected target architecture. That is why the thread-related comment is only visible if the target architecture is not avr32.
I see. Thanks for the explanation.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -