2014-06-14 07:54:52 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012-2014 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:=stm32flash
|
2022-04-20 07:39:54 +02:00
|
|
|
PKG_VERSION:=0.7
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2014-06-14 07:54:52 +02:00
|
|
|
|
2014-07-17 23:01:32 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-06-10 21:37:58 +02:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2022-04-20 07:39:54 +02:00
|
|
|
PKG_HASH:=c4c9cd8bec79da63b111d15713ef5cc2cd947deca411d35d6e3065e227dc414a
|
2021-04-12 07:40:31 +02:00
|
|
|
|
2014-09-26 01:51:59 +02:00
|
|
|
PKG_MAINTAINER:=Christian Pointner <equinox@spreadspace.org>
|
2019-09-02 15:15:08 +02:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2014-11-25 08:42:42 +01:00
|
|
|
PKG_LICENSE_FILES:=gpl-2.0.txt
|
2021-04-12 07:40:31 +02:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2014-06-14 07:54:52 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/stm32flash
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-11-02 21:30:30 +01:00
|
|
|
SUBMENU:=Microcontroller programming
|
2018-03-16 08:08:18 +01:00
|
|
|
URL:=https://sourceforge.net/projects/stm32flash
|
2014-06-14 07:54:52 +02:00
|
|
|
TITLE:=Firmware flash tool for STM32's serial bootloader
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/stm32flash/description
|
|
|
|
This tool can be used to burn firmware images to STM32 ARM processors
|
|
|
|
using the built-in serial bootloader.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/stm32flash/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2021-04-12 07:40:31 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stm32flash $(1)/usr/bin/
|
2014-06-14 07:54:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,stm32flash))
|