mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 14:31:47 -09:00
package/hidapi: propagate dependencies of libgudev
Since hidapi was introduced in commit6267f34afd, it forgot to propagate some dependencies of libgudev (which existed back then). Initially libgudev was only needed when BR2_INIT_SYSTEMD=y, but still the dependencies were not propagated for the systemd case. Anyway, sincee739dd5a11, libgudev is a mandatory dependency of hidapi, independently from the selected init system. We make sure to propagate all dependencies of libgudev to hidapi, and propagate them to the reverse dependencies of hidapi. Fixes:6267f34afd("hidapi: new package") Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commit74def2cdd4) [tperale: drop libmanette change not present] Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
4d2f85fd01
commit
ec4c7979f9
@@ -3,6 +3,8 @@ config BR2_PACKAGE_HIDAPI
|
||||
depends on BR2_PACKAGE_HAS_UDEV
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
|
||||
depends on BR2_USE_MMU # libgudev
|
||||
depends on BR2_USE_WCHAR # libgudev
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
select BR2_PACKAGE_LIBGUDEV
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
@@ -15,7 +17,9 @@ config BR2_PACKAGE_HIDAPI
|
||||
|
||||
http://github.com/libusb/hidapi/
|
||||
|
||||
comment "hidapi needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9"
|
||||
comment "hidapi needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_PACKAGE_HAS_UDEV || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_USE_WCHAR
|
||||
|
||||
@@ -17,12 +17,17 @@ config BR2_PACKAGE_OPENFPGALOADER_CMSIS
|
||||
depends on BR2_PACKAGE_HAS_UDEV # hidapi
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hidapi -> libusb
|
||||
depends on BR2_USE_MMU # hidapi
|
||||
depends on BR2_USE_WCHAR # hidapi
|
||||
select BR2_PACKAGE_HIDAPI
|
||||
help
|
||||
openfpgaloader CMSIS-DAP support
|
||||
|
||||
comment "openfpgaloader CMSIS-DAP needs udev /dev management and a toolchain w/ NPTL threads"
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
comment "openfpgaloader CMSIS-DAP needs udev /dev management and a toolchain w/ NPTL threads, gcc >= 4.9, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_OPENFPGALOADER_LIBGPIOD
|
||||
bool "libgpiod support"
|
||||
|
||||
@@ -16,12 +16,21 @@ config BR2_PACKAGE_OPENOCD_CMSIS_DAP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
|
||||
depends on BR2_PACKAGE_HAS_UDEV # hidapi
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi
|
||||
depends on BR2_USE_MMU # hidapi
|
||||
depends on BR2_USE_WCHAR # hidapi
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
select BR2_PACKAGE_HIDAPI
|
||||
help
|
||||
Enable support for CMSIS-DAP compliant debuggers (i.e
|
||||
Atmel/Microchip EDBG, etc.)
|
||||
|
||||
comment "CMSIS-DAP support needs udev, toolchain w/ NPTL, gcc >= 4.9, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
config BR2_PACKAGE_OPENOCD_FTDI
|
||||
bool "MPSSE mode of FTDI based devices"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
|
||||
@@ -3,13 +3,17 @@ config BR2_PACKAGE_PYTHON_HID
|
||||
depends on BR2_PACKAGE_HAS_UDEV # hidapi
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hidapi
|
||||
depends on BR2_USE_MMU # hidapi
|
||||
depends on BR2_USE_WCHAR # hidapi
|
||||
select BR2_PACKAGE_HIDAPI
|
||||
help
|
||||
ctypes bindings for hidapi.
|
||||
|
||||
https://github.com/apmorton/pyhidapi
|
||||
|
||||
comment "python-hid needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9"
|
||||
comment "python-hid needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_PACKAGE_HAS_UDEV || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_USE_WCHAR
|
||||
|
||||
Reference in New Issue
Block a user