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
|
|
|
|
2018-05-29 14:35:07 +02:00
|
|
|
USBUTILS_VERSION = 010
|
2013-09-06 08:14:15 +02:00
|
|
|
USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz
|
2013-07-12 13:34:45 +02:00
|
|
|
USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils
|
2014-11-11 15:17:10 +01:00
|
|
|
USBUTILS_DEPENDENCIES = host-pkgconf libusb udev
|
2018-05-29 14:35:07 +02:00
|
|
|
USBUTILS_LICENSE = GPL-2.0+ (utils) GPL-2.0 or GPL-3.0 (lsusb.py)
|
|
|
|
USBUTILS_LICENSE_FILES = LICENSES/GPL-2.0.txt LICENSES/GPL-3.0.txt
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2018-05-29 18:12:14 +02:00
|
|
|
# Nice lsusb.py script only if there's python 3.x
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),)
|
2013-07-12 13:34:45 +02:00
|
|
|
define USBUTILS_REMOVE_PYTHON
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/lsusb.py
|
|
|
|
endef
|
|
|
|
|
|
|
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_PYTHON
|
|
|
|
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
|
2010-09-01 20:53:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_TARGET_CLEANUP
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|