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>
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2010-2011 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:=ap51-flash
|
|
PKG_VERSION:=2022.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/ap51-flash/ap51-flash/releases/download/v$(PKG_VERSION)
|
|
PKG_HASH:=54999e07906296f213b298a2a80ba5df59273da30ecba1b82f94d0edf1d5d7f8
|
|
|
|
PKG_MAINTAINER:=Russell Senior <russell@personaltelco.net>
|
|
PKG_LICENSE:=GPL-3.0-or-later CC0-1.0
|
|
PKG_LICENSE_FILES:=LICENSES/GPL-3.0-or-later.txt LICENSES/CC0-1.0.txt
|
|
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ap51-flash
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=A tool for flashing (nearly) all ap51/ap61 based routers
|
|
URL:=https://ap51-flash.readthedocs.io/en/latest/
|
|
endef
|
|
|
|
# pass optimization flags
|
|
MAKE_FLAGS += \
|
|
REVISION="$(PKG_VERSION)" \
|
|
ap51-flash
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
|
|
|
define Package/ap51-flash/install
|
|
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin \
|
|
$(1)/usr/lib/ap51-flash
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ap51-flash $(1)/usr/sbin/
|
|
$(INSTALL_BIN) ./files/ap51-flash.init $(1)/etc/init.d/ap51-flash
|
|
$(INSTALL_BIN) ./files/ap51-flash.sh $(1)/usr/lib/ap51-flash/ap51-flash.sh
|
|
$(INSTALL_DATA) ./files/ap51-flash.config $(1)/etc/config/ap51-flash
|
|
endef
|
|
|
|
define Package/ap51-flash/conffiles
|
|
/etc/config/ap51-flash
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ap51-flash))
|