2015-10-01 17:11:12 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014-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:=spi-tools
|
2021-07-19 07:29:42 +02:00
|
|
|
PKG_VERSION:=1.0.0
|
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
|
2015-10-01 17:11:12 +02:00
|
|
|
|
2018-06-11 00:18:17 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2021-03-01 04:28:48 +01:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/cpb-/spi-tools/tar.gz/$(PKG_VERSION)?
|
2021-07-19 07:29:42 +02:00
|
|
|
PKG_HASH:=5eb24670461dcf2c58471114dc69b5204dab1c0cc5053878f6de79503bd8cc9f
|
2015-10-01 17:11:12 +02:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
|
2020-01-03 03:21:47 +01:00
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
2018-06-11 00:18:17 +02:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2020-01-03 03:21:47 +01:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2020-01-11 03:13:05 +01:00
|
|
|
PKG_ASLR_PIE:=0
|
2015-10-01 17:11:12 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/spi-tools
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Command line SPI tools
|
2020-01-03 03:21:47 +01:00
|
|
|
URL:=https://github.com/cpb-/spi-tools
|
2015-10-01 17:11:12 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/spi-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2020-01-03 03:21:47 +01:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/spi-config $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/spi-pipe $(1)/usr/bin
|
2015-10-01 17:11:12 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,spi-tools))
|