Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] AVR32: fix libusb build
@ 2012-11-23  9:16 Maxime Ripard
  2012-11-23  9:40 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2012-11-23  9:16 UTC (permalink / raw)
  To: buildroot

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>
---
 package/libusb/libusb.mk |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index 06a1485..fc2f10b 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -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))
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] AVR32: fix libusb build
  2012-11-23  9:16 [Buildroot] [PATCH] AVR32: fix libusb build Maxime Ripard
@ 2012-11-23  9:40 ` Peter Korsgaard
  2012-11-23  9:44   ` Maxime Ripard
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2012-11-23  9:40 UTC (permalink / raw)
  To: buildroot

>>>>> "Maxime" == Maxime Ripard <maxime.ripard@free-electrons.com> writes:

 Maxime> The libc of the avr32 toolchains seem to lack the timerfd-associated
 Maxime> functions.

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

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

Committed, thanks. Does this mean we can revert 2424cc6 (libhid: disable
on avr32)?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] AVR32: fix libusb build
  2012-11-23  9:40 ` Peter Korsgaard
@ 2012-11-23  9:44   ` Maxime Ripard
  2012-11-23  9:48     ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2012-11-23  9:44 UTC (permalink / raw)
  To: buildroot

Le 23/11/2012 10:40, Peter Korsgaard a ?crit :
>>>>>> "Maxime" == Maxime Ripard <maxime.ripard@free-electrons.com> writes:
> 
>  Maxime> The libc of the avr32 toolchains seem to lack the timerfd-associated
>  Maxime> functions.
> 
>  Maxime> Pass --disable-timerfd to libusb configure script when building for
>  Maxime> avr32.
> 
>  Maxime> Fixes most of the recent avr32 breakages, such as
>  Maxime> http://autobuild.buildroot.org/results/f418b6c0b026891c27467f61444b6eac8c105681
>  Maxime> or
>  Maxime> http://autobuild.buildroot.org/results/1a9e571998bc0a40822dca84267abbdd969bab5e
> 
> Committed, thanks. Does this mean we can revert 2424cc6 (libhid: disable
> on avr32)?

Yes, from the build logs, it looks like it was the same error, so this
patch should fix it as well.

Maxime

-- 
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] AVR32: fix libusb build
  2012-11-23  9:44   ` Maxime Ripard
@ 2012-11-23  9:48     ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2012-11-23  9:48 UTC (permalink / raw)
  To: buildroot

>>>>> "Maxime" == Maxime Ripard <maxime.ripard@free-electrons.com> writes:

Hi,

 Maxime> Fixes most of the recent avr32 breakages, such as
 Maxime> http://autobuild.buildroot.org/results/f418b6c0b026891c27467f61444b6eac8c105681
 Maxime> or
 Maxime> http://autobuild.buildroot.org/results/1a9e571998bc0a40822dca84267abbdd969bab5e
 >> 
 >> Committed, thanks. Does this mean we can revert 2424cc6 (libhid: disable
 >> on avr32)?

 Maxime> Yes, from the build logs, it looks like it was the same error, so this
 Maxime> patch should fix it as well.

Ok, will revert - Thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-23  9:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23  9:16 [Buildroot] [PATCH] AVR32: fix libusb build Maxime Ripard
2012-11-23  9:40 ` Peter Korsgaard
2012-11-23  9:44   ` Maxime Ripard
2012-11-23  9:48     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox