Pull request for branch libusb-conversion
The following changes since commit 6cdcc4d7d8134f4b60f0eb9039090f9ad4c38366:
Peter Korsgaard (1):
gcc: hide shared libgcc option if BR2_PREFER_STATIC_LIB is enabled
are available in the git repository at:
git://git.busybox.net/~tpetazzoni/git/buildroot libusb-conversion
Mike Crowe (1):
libusb: bump version, convert to autotools, add -compat lib
Thomas Petazzoni (1):
usb_modeswitch: use GENTARGETS instead of AUTOTARGETS
CHANGES | 12 ++- package/Config.in | 1 + package/libusb-compat/Config.in | 7 ++ .../libusb-compat-0.1.3-pkgconfig.patch | 10 +++ package/libusb-compat/libusb-compat.mk | 14 +++ package/libusb/libusb-0.1.12-nocpp.patch | 20 ----- package/libusb/libusb.mk | 85 ++----------------- package/usb_modeswitch/Config.in | 2 +- .../usb_modeswitch-1.0.7-build-system-fix.patch | 29 +++++++ .../usb_modeswitch/usb_modeswitch-nostrip.patch | 11 --- package/usb_modeswitch/usb_modeswitch.mk | 28 +++---- 11 files changed, 92 insertions(+), 127 deletions(-) create mode 100644 package/libusb-compat/Config.in create mode 100644 package/libusb-compat/libusb-compat-0.1.3-pkgconfig.patch create mode 100644 package/libusb-compat/libusb-compat.mk delete mode 100644 package/libusb/libusb-0.1.12-nocpp.patch create mode 100644 package/usb_modeswitch/usb_modeswitch-1.0.7-build-system-fix.patch delete mode 100644 package/usb_modeswitch/usb_modeswitch-nostrip.patch
Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/2 libusb: bump version, convert to autotools, add -compat lib
From: Mike Crowe <[email protected]>
Upgrade libusb to v1.0.3 and add new libusb-compat package for compatibility with old packages that expect the pre-1.0 API.
Also update usb_modeswitch to depend on libusb-compat rather than libusb.
Minor fixes by Thomas Petazzoni <[email protected]>.
Fixes bug #1093.
--- CHANGES | 12 ++- package/Config.in | 1 + package/libusb-compat/Config.in | 7 ++ .../libusb-compat-0.1.3-pkgconfig.patch | 10 +++ package/libusb-compat/libusb-compat.mk | 14 +++ package/libusb/libusb-0.1.12-nocpp.patch | 20 ----- package/libusb/libusb.mk | 85 ++----------------- package/usb_modeswitch/Config.in | 2 +- package/usb_modeswitch/usb_modeswitch.mk | 2 +- 9 files changed, 51 insertions(+), 102 deletions(-) create mode 100644 package/libusb-compat/Config.in create mode 100644 package/libusb-compat/libusb-compat-0.1.3-pkgconfig.patch create mode 100644 package/libusb-compat/libusb-compat.mk delete mode 100644 package/libusb/libusb-0.1.12-nocpp.patch
CHANGES +8 -4
@@ -8,13 +8,14 @@ X.org updated to 7.5. - New packages: librsync, lmbench, netperf, squid + New packages: librsync, libusb-compat, lmbench, netperf, squid Updated/fixed packages: busybox, dnsmasq, dosfstools, e2fsprogs, freetype, iperf, iptables, iw, less, libdrm, - libgcrypt, libglib2, libpng, libxml2, matchbox, mdadm, memstat, - mtd-utils, nano, openssl, php, pppd, qt, radvd, setserial, - squashfs, wget, xlib_libX11, xlib_libXfont + libgcrypt, libglib2, libpng, libusb, libxml2, matchbox, mdadm, + memstat, mtd-utils, nano, openssl, php, pppd, qt, radvd, + setserial, squashfs, usb_modeswitch, wget, xlib_libX11, + xlib_libXfont Issues resolved (http://bugs.uclibc.org):
@@ -23,6 +24,9 @@ #800: [PATCH] iperf update to 2.0.4 #805: [PATCH] mdadm - version update #817: integrator926_defconfig uses unsupported uboot board name + #1093: Upgrade libusb to v1.0.3 and add new libusb-compat + package for compatibility with old packages that expect + the pre-1.0 API. #1105: Add new netperf package #1111: Bump wget to 1.12 and migrate to Makefile.autotools.in #1117: Bump nano to 2.2.3 and migrate to Makefile.autotools.in
package/Config.in +1 -0
@@ -265,6 +265,7 @@ source "package/libaio/Config.in" source "package/libraw1394/Config.in" source "package/tslib/Config.in" source "package/libusb/Config.in" +source "package/libusb-compat/Config.in" endmenu menu "Java"
package/libusb-compat/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBUSB_COMPAT + bool "libusb-compat" + depends on BR2_PACKAGE_LIBUSB + help + libusb-0.1 compatibility layer for libusb-1.0. + + http://libusb.sourceforge.net/
package/libusb-compat/libusb-compat-0.1.3-pkgconfig.patch new file +10 -0
@@ -0,0 +1,10 @@ +--- libusb-compat-0.1.3.orig/libusb.pc.in 2008-06-18 00:13:02.000000000 +0100 ++++ libusb-compat-0.1.3/libusb.pc.in 2009-09-16 12:06:50.000000000 +0100 +@@ -9,6 +9,7 @@ emulated_by=libusb-1.0 + Name: libusb + Description: USB access library (libusb-1.0 compat wrapper) + Version: @LIBUSB01_VERSION@ ++Requires: libusb-1.0 + Libs: -L${libdir} -lusb + Cflags: -I${includedir} +
package/libusb-compat/libusb-compat.mk new file +14 -0
@@ -0,0 +1,14 @@ +############################################################# +# +# libusb-compat +# +############################################################# +LIBUSB_COMPAT_VERSION = 0.1.3 +LIBUSB_COMPAT_SOURCE = libusb-compat-$(LIBUSB_COMPAT_VERSION).tar.bz2 +LIBUSB_COMPAT_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-$(LIBUSB_COMPAT_VERSION) +LIBUSB_COMPAT_LIBTOOL_PATCH = NO +LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config libusb +LIBUSB_COMPAT_INSTALL_STAGING = YES +LIBUSB_COMPAT_INSTALL_TARGET = YES + +$(eval $(call AUTOTARGETS,package,libusb-compat))
package/libusb/libusb-0.1.12-nocpp.patch deleted +0 -20
@@ -1,20 +0,0 @@ ---- libusb-0.1.12/Makefile.am 2006-03-04 13:52:46.000000000 +1100 -+++ libusb-0.1.12/Makefile.am.new 2007-11-08 16:25:38.000000000 +1100 -@@ -4,7 +4,7 @@ - # gnu strictness chokes on README being autogenerated - AUTOMAKE_OPTIONS = 1.4 foreign - --SUBDIRS = . tests doc -+SUBDIRS = . doc - - AM_CFLAGS = -Werror - -@@ -19,7 +19,7 @@ - apidocs/footer.html apidocs/doxygen.css apidocs/doxygen.png libusb.pc.in - EXTRA_libusb_la_SOURCE = linux.c linux.h bsd.c darwin.c - --lib_LTLIBRARIES = libusb.la libusbpp.la -+lib_LTLIBRARIES = libusb.la - - pkgconfig_DATA = libusb.pc -
package/libusb/libusb.mk +9 -76
88 lines not on this page · raw message
package/usb_modeswitch/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_USB_MODESWITCH bool "usb_modeswitch" - select BR2_PACKAGE_LIBUSB + select BR2_PACKAGE_LIBUSB_COMPAT help USB mode switcher. Used to switch mode on multiple-function devices
package/usb_modeswitch/usb_modeswitch.mk +1 -1
@@ -8,7 +8,7 @@ USB_MODESWITCH_VERSION = 1.0.7 USB_MODESWITCH_SOURCE = usb_modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2 USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch USB_MODESWITCH_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install -USB_MODESWITCH_DEPENDENCIES = libusb +USB_MODESWITCH_DEPENDENCIES = libusb-compat USB_MODESWITCH_MAKE_OPT = CC="$(TARGET_CC)" OPTS="$(TARGET_CFLAGS)" $(eval $(call AUTOTARGETS,package,usb_modeswitch))
Signature · 1 line
1.6.3.3
PATCH 2/2 usb_modeswitch: use GENTARGETS instead of AUTOTARGETS
In reply to Thomas Petazzoniusb_modeswitch build system is just a simple Makefile, so the GENTARGETS infrastructure is more appropriate than the AUTOTARGETS infrastructure. The build system is slightly fixed through a small patch, that replaces the previous "nostrip" patch.
The latest version of usb_modeswitch is 1.1.1, but it now relies on udev and requires TCL to operate. Someone actually using usb_modeswitch would probably be at a better place to do this version bump.
--- .../usb_modeswitch-1.0.7-build-system-fix.patch | 29 ++++++++++++++++++++ .../usb_modeswitch/usb_modeswitch-nostrip.patch | 11 ------- package/usb_modeswitch/usb_modeswitch.mk | 26 ++++++++--------- 3 files changed, 41 insertions(+), 25 deletions(-) create mode 100644 package/usb_modeswitch/usb_modeswitch-1.0.7-build-system-fix.patch delete mode 100644 package/usb_modeswitch/usb_modeswitch-nostrip.patch
package/usb_modeswitch/usb_modeswitch-1.0.7-build-system-fix.patch new file +29 -0
@@ -0,0 +1,29 @@ +--- + Makefile | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +Index: usb_modeswitch-1.0.7/Makefile +=================================================================== +--- usb_modeswitch-1.0.7.orig/Makefile ++++ usb_modeswitch-1.0.7/Makefile +@@ -1,8 +1,8 @@ + PROG = usb_modeswitch + VERS = 1.0.7 + STRIP = strip +-CC = gcc +-CCFLAGS = -l usb -Wall ++CC ?= gcc ++CFLAGS += -l usb -Wall + RM = /bin/rm -f + OBJS = usb_modeswitch.c + PREFIX = $(DESTDIR)/usr +@@ -12,8 +12,7 @@ + .PHONY: clean + all: $(PROG) + $(PROG): $(OBJS) +- $(CC) $(CCFLAGS) -o $(PROG) $(OBJS) +- $(STRIP) $(PROG) ++ $(CC) $(CFLAGS) -o $(PROG) $(OBJS) + + clean: + $(RM) ./usb_modeswitch
package/usb_modeswitch/usb_modeswitch-nostrip.patch deleted +0 -11
@@ -1,11 +0,0 @@ -diff -Nura usb_modeswitch-1.0.1/Makefile usb_modeswitch-1.0.1.nostrip/Makefile ---- usb_modeswitch-1.0.1/Makefile 2009-04-15 16:15:17.000000000 -0300 -+++ usb_modeswitch-1.0.1.nostrip/Makefile 2009-06-10 10:02:05.000000000 -0300 -@@ -13,7 +13,6 @@ - all: $(PROG) - $(PROG): $(OBJS) - $(CC) $(CCFLAGS) -o $(PROG) $(OBJS) -- $(STRIP) $(PROG) - - clean: - $(RM) ./usb_modeswitch
package/usb_modeswitch/usb_modeswitch.mk +12 -14
@@ -7,22 +7,20 @@ USB_MODESWITCH_VERSION = 1.0.7 USB_MODESWITCH_SOURCE = usb_modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2 USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch -USB_MODESWITCH_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install USB_MODESWITCH_DEPENDENCIES = libusb-compat -USB_MODESWITCH_MAKE_OPT = CC="$(TARGET_CC)" OPTS="$(TARGET_CFLAGS)" -$(eval $(call AUTOTARGETS,package,usb_modeswitch)) +define USB_MODESWITCH_BUILD_CMDS + rm $(@D)/usb_modeswitch + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef -$(USB_MODESWITCH_TARGET_CONFIGURE): - rm -f $(USB_MODESWITCH_DIR)/usb_modeswitch - touch $@ +define USB_MODESWITCH_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install +endef -$(USB_MODESWITCH_HOOK_POST_INSTALL): - chmod a-x $(TARGET_DIR)/etc/usb_modeswitch.conf - touch $@ +define USB_MODESWITCH_CLEAN_CMDS + rm -f $(TARGET_DIR)/usr/sbin/usb_modeswitch + rm -f $(TARGET_DIR)/etc/usb_modeswitch.conf +endef -$(USB_MODESWITCH_TARGET_UNINSTALL): - $(call MESSAGE,"Uninstalling") - rm -f $(TARGET_DIR)/usr/sbin/usb_modeswitch - rm -f $(TARGET_DIR)/etc/usb_modeswitch.conf - rm -f $(USB_MODESWITCH_TARGET_INSTALL_TARGET) $(USB_MODESWITCH_HOOK_POST_INSTALL) +$(eval $(call GENTARGETS,package,usb_modeswitch))
Signature · 1 line
1.6.3.3
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> The following changes since commit 6cdcc4d7d8134f4b60f0eb9039090f9ad4c38366:
Thomas> Peter Korsgaard (1):
Thomas> gcc: hide shared libgcc option if BR2_PREFER_STATIC_LIB is enabled
Thomas> are available in the git repository at:
Thomas> git://git.busybox.net/~tpetazzoni/git/buildroot libusb-conversion
Pulled, thanks.
It's nice that you edited CHANGES for me, but this almost always causes merge conflicts, so I actually prefer to do it myself instead - OK?
Signature · 1 line
Bye, Peter Korsgaard
Quoted 2 lines · On Thu, 08 Apr 2010 11:40:22 +0200 Peter Korsgaard <[email protected]> wrote:
It's nice that you edited CHANGES for me, but this almost always causes merge conflicts, so I actually prefer to do it myself instead - OK?
Ok, makes sense.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com