mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
According to the upstream changelog LGPL-2.1+, CC0-1.0, and MIT licenses were added with v018. Grouping is derived from individual SPDX-License-Identifier headers in the source files. [1] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/tree/NEWS?id=bd86478bb8d09abd0aba8ead781bc8f4609521e6#n159 Signed-off-by: Fiona Klute (Othermo GmbH) <fiona.klute@gmx.de> Signed-off-by: Julien Olivain <ju.o@free.fr>
34 lines
1002 B
Makefile
34 lines
1002 B
Makefile
################################################################################
|
|
#
|
|
# 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))
|