Skip to contentSkip to conversation

package/usbutils: only needs libudev, not udev daemon

Buildroot Marcus Hoffmann via buildroot 1 participant 1 message Jun 17

lore
Share & tools
lore
#0 lore raw

commit: https://gitlab.com/buildroot.org/buildroot/-/commit/b94ada76083824475e92c51b14042dc8f2a66717
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master

libudev-zero version 1.0.4 added support for usb.ids with commit
https://github.com/illiliti/libudev-zero/commit/2bebebc9e0444ec53afd7f1f37aa80ff6b95f5f7

Also select hwdata when libudev-zero implementation for udev is used to more useful output from usbutils. This is strictly speaking an optional dependency but would be confusing if it weren't working.

[Marcus: add note about selecting hwdata]
---
 package/usbutils/Config.in   | 8 +++++---
 package/usbutils/usbutils.mk | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
package/usbutils/Config.in +5 -3
index 7e7029bbfe..fb37b8a9e3 100644
@@ -2,7 +2,9 @@ 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_UDEV # needs hwdb
+	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
@@ -10,7 +12,7 @@ config BR2_PACKAGE_USBUTILS
 
 	  http://linux-usb.sourceforge.net/
 
-comment "usbutils needs udev /dev management and toolchain w/ threads, gcc >= 4.9"
+comment "usbutils needs libudev and a toolchain w/ threads, wchar, dynamic library, gcc >= 4.9"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_PACKAGE_HAS_UDEV || \
+		!BR2_PACKAGE_HAS_LIBUDEV || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
package/usbutils/usbutils.mk +1 -1
index 5b6037afa2..afeb7ded2a 100644
@@ -7,7 +7,7 @@
 USBUTILS_VERSION = 019
 USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz
 USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils
-USBUTILS_DEPENDENCIES = host-pkgconf libusb udev
+USBUTILS_DEPENDENCIES = host-pkgconf libudev libusb
 USBUTILS_LICENSE = GPL-2.0+ (utils) GPL-2.0 or GPL-3.0 (lsusb.py)
 USBUTILS_LICENSE_FILES = LICENSES/GPL-2.0-only.txt LICENSES/GPL-3.0-only.txt
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot