AVR32: fix libusb build
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 Nov 2012 23:16:36 +0000 (23:16 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 23 Nov 2012 09:40:45 +0000 (10:40 +0100)
The libc of the avr32 toolchains seem to lack the timerfd-associated
functions.

Pass --disable-timerfd to libusb configure script when building for
avr32.

Fixes most of the recent avr32 breakages, such as
http://autobuild.buildroot.org/results/f418b6c0b026891c27467f61444b6eac8c105681
or
http://autobuild.buildroot.org/results/1a9e571998bc0a40822dca84267abbdd969bab5e

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libusb/libusb.mk

index 06a148543bbdab0954baaf95cef67b4dcccab42b..fc2f10b558376a378e376b068de97b9fa2662dad 100644 (file)
@@ -11,5 +11,9 @@ LIBUSB_LICENSE_FILES = COPYING
 LIBUSB_DEPENDENCIES = host-pkgconf
 LIBUSB_INSTALL_STAGING = YES
 
+ifeq ($(BR2_avr32),y)
+LIBUSB_CONF_OPT += --disable-timerfd
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))