Initial Commit
- initial default booting image
This commit is contained in:
18
package/usbutils/Config.in
Normal file
18
package/usbutils/Config.in
Normal file
@@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_USBUTILS
|
||||
bool "usbutils"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
|
||||
depends on BR2_PACKAGE_HAS_LIBUDEV
|
||||
select BR2_PACKAGE_HWDATA if BR2_PACKAGE_LIBUDEV_ZERO
|
||||
select BR2_PACKAGE_HWDATA_USB_IDS if BR2_PACKAGE_LIBUDEV_ZERO
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
USB enumeration utilities
|
||||
|
||||
http://linux-usb.sourceforge.net/
|
||||
|
||||
comment "usbutils needs libudev and a toolchain w/ threads, gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_PACKAGE_HAS_LIBUDEV || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
8
package/usbutils/usbutils.hash
Normal file
8
package/usbutils/usbutils.hash
Normal file
@@ -0,0 +1,8 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/usb/usbutils/sha256sums.asc
|
||||
sha256 659f40c440e31ba865c52c818a33d3ba6a97349e3353f8b1985179cb2aa71ec5 usbutils-019.tar.xz
|
||||
# Locally calculated
|
||||
sha256 1f2fa2e0fac0e224fa84969d0e0b3e6801ecdfb7b9526a4664787e840ad705a2 LICENSES/CC0-1.0.txt
|
||||
sha256 91412672119c72352b76c1d48fa1a8b7cdc7f70be7929e468c8805db468e23e4 LICENSES/GPL-2.0-only.txt
|
||||
sha256 4631da83311d27f99078d0d102e31bd34a4fcbcc2dae2aa40f1454a5b48125dc LICENSES/GPL-3.0-only.txt
|
||||
sha256 efbaee946ac92a48b89eae36f655844042370d2f0e04eadea1e2998efae24ebd LICENSES/LGPL-2.1-or-later.txt
|
||||
sha256 323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f LICENSES/MIT.txt
|
||||
33
package/usbutils/usbutils.mk
Normal file
33
package/usbutils/usbutils.mk
Normal file
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# usbutils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
USBUTILS_VERSION = 019
|
||||
USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz
|
||||
USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils
|
||||
USBUTILS_DEPENDENCIES = host-pkgconf libudev libusb
|
||||
USBUTILS_LICENSE = GPL-2.0+, GPL-2.0 (utils), LGPL-2.1+ (config/CI), GPL-2.0 or GPL-3.0 (lsusb.py), CC0-1.0, MIT (ccan)
|
||||
USBUTILS_LICENSE_FILES = \
|
||||
LICENSES/CC0-1.0.txt \
|
||||
LICENSES/GPL-2.0-only.txt \
|
||||
LICENSES/GPL-3.0-only.txt \
|
||||
LICENSES/LGPL-2.1-or-later.txt \
|
||||
LICENSES/MIT.txt
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
USBUTILS_DEPENDENCIES += libiconv
|
||||
USBUTILS_LDFLAGS += -liconv
|
||||
endif
|
||||
|
||||
# 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 $(meson-package))
|
||||
Reference in New Issue
Block a user