[Buildroot] [git commit] package/libsigrok: add optional hidapi dependency

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Jan 12 21:45:21 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=0c86ea196363a277267c034bda5edc80896a6118
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

hidapi dependency has been added since version 0.5.2 and
https://github.com/sigrokproject/libsigrok/commit/4417074c68ce998c2d666fc8a034204a1b74fc2f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/libsigrok/libsigrok.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/libsigrok/libsigrok.mk b/package/libsigrok/libsigrok.mk
index 4866ec4d68..8def692e31 100644
--- a/package/libsigrok/libsigrok.mk
+++ b/package/libsigrok/libsigrok.mk
@@ -22,6 +22,13 @@ else
 LIBSIGROK_CONF_OPTS += --without-libbluez
 endif
 
+ifeq ($(BR2_PACKAGE_HIDAPI),y)
+LIBSIGROK_CONF_OPTS += --with-libhidapi
+LIBSIGROK_DEPENDENCIES += hidapi
+else
+LIBSIGROK_CONF_OPTS += --without-libhidapi
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSERIALPORT),y)
 LIBSIGROK_CONF_OPTS += --with-libserialport
 LIBSIGROK_DEPENDENCIES += libserialport


More information about the buildroot mailing list