From 011833f2752df3dc09c65fe94709e97eb44693b9 Mon Sep 17 00:00:00 2001 From: Stefan Hellermann Date: Thu, 5 Jan 2023 15:34:48 +0100 Subject: [PATCH] dfu-programmer: update to 1.0.0 The project website http://dfu-programmer.github.io seams dead, but there are new releases on github. They just released 1.0.0, update to it. I removed docs, bash-completion and the fedora spec file from configure.ac to fix cross compilation problems. Signed-off-by: Stefan Hellermann --- utils/dfu-programmer/Makefile | 17 ++++++----------- .../patches/000-remove-docs-etc.patch | 9 +++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 utils/dfu-programmer/patches/000-remove-docs-etc.patch diff --git a/utils/dfu-programmer/Makefile b/utils/dfu-programmer/Makefile index aadd7965fc..8a7e1a0e53 100644 --- a/utils/dfu-programmer/Makefile +++ b/utils/dfu-programmer/Makefile @@ -1,26 +1,21 @@ -# -# Copyright (C) 2015 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - include $(TOPDIR)/rules.mk PKG_NAME:=dfu-programmer -PKG_VERSION:=0.7.2 +PKG_VERSION:=1.0.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_VERSION) -PKG_HASH:=1db4d36b1aedab2adc976e8faa5495df3cf82dc4bf883633dc6ba71f7c4af995 +PKG_SOURCE_URL:=https://github.com/$(PKG_NAME)/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/ +PKG_HASH:=867eaf0a8cd10123715491807ab99cecb54dc6f09dddade4b2a42b0b0ef9e6b0 PKG_MAINTAINER:=Stefan Hellermann PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING +PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 +MAKE_PATH:=src include $(INCLUDE_DIR)/package.mk @@ -29,7 +24,7 @@ define Package/dfu-programmer CATEGORY:=Utilities SUBMENU:=Microcontroller programming TITLE:=USB programmer for Atmel microcontrollers - URL:=http://dfu-programmer.github.io/ + URL:=https://github.com/dfu-programmer/dfu-programmer DEPENDS:=+libusb-1.0 endef diff --git a/utils/dfu-programmer/patches/000-remove-docs-etc.patch b/utils/dfu-programmer/patches/000-remove-docs-etc.patch new file mode 100644 index 0000000000..ad0f3686a3 --- /dev/null +++ b/utils/dfu-programmer/patches/000-remove-docs-etc.patch @@ -0,0 +1,9 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -28,5 +28,5 @@ AC_FUNC_MEMCMP + # Checks for libusb. + AC_SEARCH_LIBS(libusb_init, usb-1.0,, [AC_MSG_ERROR([libusb 1.0 not found])]) + +-AC_CONFIG_FILES(fedora/dfu-programmer.spec Makefile docs/Makefile src/Makefile) ++AC_CONFIG_FILES(src/Makefile) + AC_OUTPUT