usbutils: bump to version 008
PATCH v2 1/1 usbutils: bump to version 008
Now uses hwdb from libudev for usb information.
Drop all redundant/obsolete dependencies and cleanup hooks. Don't install to staging, it's pointless, it provides no libraries at all and it doesn't bundle usb.ids any more.
--- package/usbutils/Config.in | 18 +++++------------- package/usbutils/usbutils.hash | 2 +- package/usbutils/usbutils.mk | 33 ++------------------------------- 3 files changed, 8 insertions(+), 45 deletions(-)
package/usbutils/Config.in +5 -13
@@ -1,24 +1,16 @@ config BR2_PACKAGE_USBUTILS bool "usbutils" depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on BR2_PACKAGE_HAS_UDEV # needs hwdb select BR2_PACKAGE_LIBUSB help USB enumeration utilities http://linux-usb.sourceforge.net/ -if BR2_PACKAGE_USBUTILS - -config BR2_PACKAGE_USBUTILS_ZLIB - bool "compressed data support" - select BR2_PACKAGE_ZLIB - help - Enable use of zlib for a compressed usb.ids.gz - This makes the data file smaller if you're not using a compressed - filesystem, but it also makes lsusb slower since it has - to decompress the file every time it's run. - -endif - comment "usbutils needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_PACKAGE_HAS_UDEV + +comment "usbutils requires eudev or systemd to be enabled" + depends on !BR2_PACKAGE_HAS_UDEV
package/usbutils/usbutils.hash +1 -1
@@ -1,2 +1,2 @@ # From https://www.kernel.org/pub/linux/utils/usb/usbutils/sha256sums.asc -sha256 7593a01724bbc0fd9fe48e62bc721ceb61c76654f1d7b231b3c65f6dfbbaefa4 usbutils-007.tar.xz +sha256 44741af0bae9d402a0ef160a29b2fa700bb656ab5e0a4b3343d51249c2a44c8c usbutils-008.tar.xz
package/usbutils/usbutils.mk +2 -31
@@ -4,20 +4,13 @@ # ################################################################################ -USBUTILS_VERSION = 007 +USBUTILS_VERSION = 008 USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils -USBUTILS_DEPENDENCIES = host-pkgconf libusb -USBUTILS_INSTALL_STAGING = YES +USBUTILS_DEPENDENCIES = host-pkgconf libusb udev USBUTILS_LICENSE = GPLv2+ USBUTILS_LICENSE_FILES = COPYING -ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y) - USBUTILS_DEPENDENCIES += zlib -else - USBUTILS_CONF_OPTS = --disable-zlib -endif - # Build after busybox since it's got a lightweight lsusb ifeq ($(BR2_PACKAGE_BUSYBOX),y) USBUTILS_DEPENDENCIES += busybox
@@ -34,30 +27,8 @@ endif define USBUTILS_TARGET_CLEANUP rm -f $(TARGET_DIR)/usr/bin/usb-devices - rm -f $(TARGET_DIR)/usr/sbin/update-usbids.sh - rm -f $(TARGET_DIR)/usr/share/pkgconfig/usbutils.pc endef USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_TARGET_CLEANUP -define USBUTILS_REMOVE_UNCOMPRESSED_IDS - rm -f $(TARGET_DIR)/usr/share/usb.ids -endef - -define USBUTILS_REMOVE_COMPRESSED_IDS - rm -f $(TARGET_DIR)/usr/share/usb.ids.gz -endef - -ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y) -USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_UNCOMPRESSED_IDS -else -USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_COMPRESSED_IDS -endif - -define USBUTILS_REMOVE_DEVFILES - rm -f $(TARGET_DIR)/usr/bin/libusb-config -endef - -USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_DEVFILES - $(eval $(autotools-package))
Signature · 1 line
2.0.4
Thomas Petazzoni
AppliedPATCH v2 1/1 usbutils: bump to version 008
Dear Gustavo Zacarias,
Quoted 11 lines · Gustavo Zacarias
Now uses hwdb from libudev for usb information.
Drop all redundant/obsolete dependencies and cleanup hooks. Don't install to staging, it's pointless, it provides no libraries at all and it doesn't bundle usb.ids any more.Signed-off-by Gustavo Zacarias <[email protected]>--- package/usbutils/Config.in | 18 +++++------------- package/usbutils/usbutils.hash | 2 +- package/usbutils/usbutils.mk | 33 ++------------------------------- 3 files changed, 8 insertions(+), 45 deletions(-)
Thanks, applied. I've done a small change to the 'comment' handling in Config.in, to match what the Buildroot manual recommends for a udev dependency.
It's sad to see a basic tool such as lsusb now requiring udev, but oh well if that's upstream decision, we have no real choice.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com