diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-11-11 11:17:10 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-12-09 20:46:37 +0100 |
commit | 7d925ffcbfd5d78707c5fc87bc4dc52df0b57e58 (patch) | |
tree | 793ae5877f93b7d1c971b714c91354dd3353d95f | |
parent | 301102e136c43545b5fff09a1f2fe8debf970064 (diff) | |
download | buildroot-7d925ffcbfd5d78707c5fc87bc4dc52df0b57e58.tar.gz buildroot-7d925ffcbfd5d78707c5fc87bc4dc52df0b57e58.zip |
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.
[Thomas: change 'comment' in Config.in to match what's recommended in
the Buildroot manual.]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/usbutils/Config.in | 18 | ||||
-rw-r--r-- | package/usbutils/usbutils.hash | 2 | ||||
-rw-r--r-- | package/usbutils/usbutils.mk | 33 |
3 files changed, 6 insertions, 47 deletions
diff --git a/package/usbutils/Config.in b/package/usbutils/Config.in index a64e674eb3..7920ab8f41 100644 --- a/package/usbutils/Config.in +++ b/package/usbutils/Config.in @@ -1,24 +1,12 @@ 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 +comment "usbutils needs needs udev /dev management and toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV diff --git a/package/usbutils/usbutils.hash b/package/usbutils/usbutils.hash index 6023f3971f..37c829a1ae 100644 --- a/package/usbutils/usbutils.hash +++ b/package/usbutils/usbutils.hash @@ -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 diff --git a/package/usbutils/usbutils.mk b/package/usbutils/usbutils.mk index 0e9b52fff9..56fa0ba1ae 100644 --- a/package/usbutils/usbutils.mk +++ b/package/usbutils/usbutils.mk @@ -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)) |