|
@@ -56,8 +56,14 @@ OPENOCD_DEPENDENCIES = \
|
|
|
$(if $(BR2_PACKAGE_LIBUSB),libusb) \
|
|
|
$(if $(BR2_PACKAGE_LIBUSB_COMPAT),libusb-compat) \
|
|
|
$(if $(BR2_PACKAGE_LIBHID),libhid) \
|
|
|
- $(if $(BR2_PACKAGE_HIDAPI),hidapi) \
|
|
|
- $(if $(BR2_PACKAGE_LIBGPIOD),libgpiod)
|
|
|
+ $(if $(BR2_PACKAGE_HIDAPI),hidapi)
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_LIBGPIOD),y)
|
|
|
+OPENOCD_DEPENDENCIES += libgpiod
|
|
|
+OPENOCD_CONF_OPTS += --enable-linuxgpiod
|
|
|
+else
|
|
|
+OPENOCD_CONF_OPTS += --disable-linuxgpiod
|
|
|
+endif
|
|
|
|
|
|
# Adapters
|
|
|
OPENOCD_CONF_OPTS += \
|