2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-12-13 06:00:58 +01:00
|
|
|
#
|
|
|
|
# usbutils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2012-07-18 17:40:16 +02:00
|
|
|
USBUTILS_VERSION = 006
|
|
|
|
USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils/
|
|
|
|
USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.gz
|
2012-10-22 17:47:52 +02:00
|
|
|
USBUTILS_DEPENDENCIES = host-pkgconf libusb
|
2011-05-01 15:00:14 +02:00
|
|
|
USBUTILS_INSTALL_STAGING = YES
|
2012-03-11 22:47:55 +01:00
|
|
|
# no configure in tarball
|
|
|
|
USBUTILS_AUTORECONF = YES
|
2012-11-13 02:06:00 +01:00
|
|
|
USBUTILS_LICENSE = GPLv2+
|
|
|
|
USBUTILS_LICENSE_FILES = COPYING
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2009-11-30 16:58:49 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y)
|
|
|
|
USBUTILS_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
USBUTILS_CONF_OPT = --disable-zlib
|
|
|
|
endif
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2011-10-15 05:07:25 +02:00
|
|
|
# Build after busybox since it's got a lightweight lsusb
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
USBUTILS_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2010-09-01 20:53:48 +02:00
|
|
|
define USBUTILS_TARGET_CLEANUP
|
2009-11-30 16:58:49 +01:00
|
|
|
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
|
2010-09-01 20:53:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_TARGET_CLEANUP
|
|
|
|
|
|
|
|
define USBUTILS_REMOVE_UNCOMPRESSED_IDS
|
2007-05-07 05:59:35 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/share/usb.ids
|
2010-09-01 20:53:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define USBUTILS_REMOVE_COMPRESSED_IDS
|
2009-11-30 16:58:49 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/share/usb.ids.gz
|
2010-09-01 20:53:48 +02:00
|
|
|
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
|
2010-05-06 16:14:38 +02:00
|
|
|
endif
|
2010-09-01 20:53:48 +02:00
|
|
|
|
|
|
|
define USBUTILS_REMOVE_DEVFILES
|
2010-05-06 16:14:38 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/libusb-config
|
2010-09-01 20:53:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_DEVFILES
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|