treewide: refresh hashes after move to use ZSTD as default
[feed/packages.git] / utils / openocd / Makefile
index 30c2e836855ac6bd4a2bd449681ebacc5cb7c434..a2e77240786c21f05169d1c2a241cda4925fb2a5 100644 (file)
@@ -8,16 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openocd
-PKG_SOURCE_VERSION:=v0.10.0-1000-gdb23c13d
-PKG_VERSION:=$(PKG_SOURCE_VERSION)
+PKG_SOURCE_VERSION:=v0.12.0
 PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_URL:=git://git.code.sf.net/p/openocd/code
-PKG_MIRROR_HASH:=6f8c0ecf240427654ad5e911b44f78996da931209280f4a19c1215802ff14638
+PKG_SOURCE_URL:=https://git.code.sf.net/p/openocd/code
+PKG_MIRROR_HASH:=a8e0d311b6ebecb6d43b7c75ec59ec3efb0b0a2e424a959a2667975d4acb0829
 
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0-only
 PKG_LICENSE_FILES:=COPYING
 
 PKG_MAINTAINER:=Paul Fertser <fercerpav@gmail.com>
@@ -37,18 +35,11 @@ define Package/openocd
   CATEGORY:=Utilities
   TITLE:=OpenOCD Utility
   URL:=http://openocd.sf.net/
-  DEPENDS:=+PACKAGE_openocd_with_usb:libusb-1.0 \
-       +PACKAGE_openocd_with_usb:libusb-compat \
-       +PACKAGE_openocd_with_usb:libftdi1 \
-       +PACKAGE_openocd_with_usb:hidapi
-endef
-
-define Package/openocd/config
-  if PACKAGE_openocd
-       config PACKAGE_openocd_with_usb
-               bool "Build with support for USB adapters."
-               default y
-  endif
+  DEPENDS:=+libusb-1.0 \
+       +libftdi1 \
+       +hidapi \
+       +libgpiod \
+       +libjaylink
 endef
 
 define Package/openocd/description
@@ -72,15 +63,20 @@ endef
 define Build/Prepare
        $(call Build/Prepare/Default)
        -$(RM) $(PKG_BUILD_DIR)/guess-rev.sh
+       -$(RM) $(PKG_BUILD_DIR)/jimtcl/configure.ac
 endef
 
 CONFIGURE_ARGS += \
        --prefix="/usr" \
        --disable-werror \
        MAKEINFO=true \
-       $(if $(CONFIG_PACKAGE_openocd_with_usb),,PKG_CONFIG=false) \
        --enable-dummy \
-       --enable-sysfsgpio
+       --enable-sysfsgpio \
+       --enable-linuxgpiod
+
+ifeq ($(CONFIG_TARGET_bcm27xx),y)
+       CONFIGURE_ARGS += --enable-bcm2835gpio
+endif
 
 TARGET_CFLAGS += -DRELSTR=\\\"-$(PKG_VERSION)-$(PKG_RELEASE)-OpenWrt\\\"