board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / usbutils / usbutils.mk
blobc96a1f54ff29bf2a60549be40f221903ace9c055
1 ################################################################################
3 # usbutils
5 ################################################################################
7 USBUTILS_VERSION = 008
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
17 endif
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
23 endef
25 USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_PYTHON
26 endif
28 define USBUTILS_TARGET_CLEANUP
29 rm -f $(TARGET_DIR)/usr/bin/usb-devices
30 endef
32 USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_TARGET_CLEANUP
34 $(eval $(autotools-package))