package/libsigrok: add optional hidapi dependency

hidapi dependency has been added since version 0.5.2 and
4417074c68

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2020-01-11 16:07:49 +01:00 committed by Thomas Petazzoni
parent 31c68a449e
commit 0c86ea1963

View File

@ -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