2015-09-18 21:39:30 +02:00
|
|
|
#
|
|
|
|
# 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:=canutils
|
2021-12-16 02:56:45 +01:00
|
|
|
PKG_VERSION:=2021.08.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:=2
|
2015-09-18 21:39:30 +02:00
|
|
|
|
2019-10-31 19:58:51 +01:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/linux-can/can-utils/tar.gz/v$(PKG_VERSION)?
|
2021-12-16 02:56:45 +01:00
|
|
|
PKG_HASH:=c9b8f29515ad34af7f78450ec55c983abc5393e86b1f128a92ac0dfd141baaf7
|
2019-10-31 19:58:51 +01:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/can-utils-$(PKG_VERSION)
|
2015-09-18 21:39:30 +02:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
|
2019-09-02 15:15:08 +02:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2020-07-04 23:50:23 +02:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2015-09-18 21:39:30 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2015-09-18 21:39:30 +02:00
|
|
|
|
|
|
|
define Package/canutils/Default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
URL:=https://github.com/linux-can/can-utils
|
|
|
|
TITLE:=CAN userspace utilities and tools
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/canutils
|
|
|
|
$(call Package/canutils/Default)
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
2017-03-10 14:56:40 +01:00
|
|
|
define GenPlugin
|
|
|
|
define Package/$(addprefix canutils-,$(1))
|
|
|
|
$(call Package/canutils/Default)
|
|
|
|
TITLE:=Utility $(1) from the CAN utilities
|
2020-07-04 23:50:23 +02:00
|
|
|
DEPENDS:=canutils
|
2017-03-10 14:56:40 +01:00
|
|
|
endef
|
2015-09-18 21:39:30 +02:00
|
|
|
|
2017-03-10 14:56:40 +01:00
|
|
|
define Package/$(addprefix canutils-,$(1))/description
|
|
|
|
Utility $(1) from the CAN utilities package.
|
|
|
|
endef
|
2015-09-18 21:39:30 +02:00
|
|
|
endef
|
|
|
|
|
2020-02-06 05:10:35 +01:00
|
|
|
FILES:= \
|
|
|
|
asc2log bcmserver canbusload can-calc-bit-timing \
|
|
|
|
candump canfdtest cangen cangw canlogserver canplayer \
|
|
|
|
cansend cansniffer isotpdump isotpperf isotprecv isotpsend \
|
2020-11-18 07:05:24 +01:00
|
|
|
isotpserver isotpsniffer isotptun j1939acd j1939cat j1939spy j1939sr \
|
2020-02-06 05:10:35 +01:00
|
|
|
log2asc log2long slcan_attach slcand slcanpty testj1939
|
2017-03-10 14:56:40 +01:00
|
|
|
|
|
|
|
$(foreach a,$(FILES),$(eval $(call GenPlugin,$(a))))
|
2015-09-18 21:39:30 +02:00
|
|
|
|
|
|
|
define PartInstall
|
|
|
|
define Package/canutils-$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) \
|
2019-10-31 19:58:51 +01:00
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/$(1) \
|
2015-09-18 21:39:30 +02:00
|
|
|
$$(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
|
|
|
|
|
2020-08-12 02:58:19 +02:00
|
|
|
define Package/canutils/install
|
|
|
|
true
|
|
|
|
endef
|
|
|
|
|
2015-09-18 21:39:30 +02:00
|
|
|
$(eval $(call BuildPackage,canutils))
|
|
|
|
$(foreach file,$(FILES),$(eval $(call BuildPackage,canutils-$(file))))
|