mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
12
package/usbutils/Config.in
Normal file
12
package/usbutils/Config.in
Normal file
@@ -0,0 +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/
|
||||
|
||||
comment "usbutils needs udev /dev management and toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV
|
||||
5
package/usbutils/usbutils.hash
Normal file
5
package/usbutils/usbutils.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/usb/usbutils/sha256sums.asc
|
||||
sha256 88634625f91840bc1993d2731cc081ee8d3b13d56069a95bdd6ac6ef0e063e46 usbutils-012.tar.xz
|
||||
# Locally calculated
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0.txt
|
||||
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 LICENSES/GPL-3.0.txt
|
||||
25
package/usbutils/usbutils.mk
Normal file
25
package/usbutils/usbutils.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# usbutils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
USBUTILS_VERSION = 012
|
||||
USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz
|
||||
USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils
|
||||
USBUTILS_DEPENDENCIES = host-pkgconf libusb udev
|
||||
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
|
||||
# Missing configure script
|
||||
USBUTILS_AUTORECONF = YES
|
||||
|
||||
# Nice lsusb.py script only if there's python 3.x
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),)
|
||||
define USBUTILS_REMOVE_PYTHON
|
||||
rm -f $(TARGET_DIR)/usr/bin/lsusb.py
|
||||
endef
|
||||
|
||||
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_PYTHON
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user