1 ################################################################################
5 ################################################################################
8 USBUTILS_SOURCE
= usbutils-
$(USBUTILS_VERSION
).
tar.xz
9 USBUTILS_SITE
= $(BR2_KERNEL_MIRROR
)/linux
/utils
/usb
/usbutils
10 USBUTILS_DEPENDENCIES
= host-pkgconf libusb udev
11 USBUTILS_LICENSE
= GPLv2
+
12 USBUTILS_LICENSE_FILES
= COPYING
14 # Build after busybox since it's got a lightweight lsusb
15 ifeq ($(BR2_PACKAGE_BUSYBOX
),y
)
16 USBUTILS_DEPENDENCIES
+= busybox
19 # Nice lsusb.py script only if there's python
20 ifeq ($(BR2_PACKAGE_PYTHON
),)
21 define USBUTILS_REMOVE_PYTHON
22 rm -f
$(TARGET_DIR
)/usr
/bin
/lsusb.py
25 USBUTILS_POST_INSTALL_TARGET_HOOKS
+= USBUTILS_REMOVE_PYTHON
28 define USBUTILS_TARGET_CLEANUP
29 rm -f
$(TARGET_DIR
)/usr
/bin
/usb-devices
32 USBUTILS_POST_INSTALL_TARGET_HOOKS
+= USBUTILS_TARGET_CLEANUP
34 $(eval
$(autotools-package
))