Browse Source

package/libsigrok: add optional hidapi dependency

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@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 5 years ago
parent
commit
0c86ea1963
1 changed files with 7 additions and 0 deletions
  1. 7 0
      package/libsigrok/libsigrok.mk

+ 7 - 0
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