2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=2021.08.0
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/linux-can
/can-utils
/tar.gz
/v
$(PKG_VERSION
)?
16 PKG_HASH
:=c9b8f29515ad34af7f78450ec55c983abc5393e86b1f128a92ac0dfd141baaf7
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/can-utils-
$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Anton Glukhov
<anton.a.glukhov@gmail.com
>
20 PKG_LICENSE
:=GPL-2.0
-or-later
21 PKG_LICENSE_FILES
:=COPYING
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/cmake.mk
26 define Package
/canutils
/Default
29 URL
:=https
://github.com
/linux-can
/can-utils
30 TITLE
:=CAN userspace utilities and tools
33 define Package
/canutils
34 $(call Package
/canutils
/Default
)
39 define Package
/$(addprefix canutils-
,$(1))
40 $(call Package
/canutils
/Default
)
41 TITLE
:=Utility
$(1) from the CAN utilities
45 define Package
/$(addprefix canutils-
,$(1))/description
46 Utility
$(1) from the CAN utilities package.
51 asc2log bcmserver canbusload can-calc-bit-timing \
52 candump canfdtest cangen cangw canlogserver canplayer \
53 cansend cansniffer isotpdump isotpperf isotprecv isotpsend \
54 isotpserver isotpsniffer isotptun j1939acd j1939cat j1939spy j1939sr \
55 log2asc log2long slcan_attach slcand slcanpty testj1939
57 $(foreach a
,$(FILES
),$(eval
$(call GenPlugin
,$(a
))))
60 define Package
/canutils-
$(1)/install
61 $(INSTALL_DIR
) $$(1)/usr
/bin
63 $(PKG_INSTALL_DIR
)/usr
/bin
/$(1) \
68 $(foreach file
,$(FILES
),$(eval
$(call PartInstall
,$(file
))))
70 define Package
/canutils
/install
74 $(eval
$(call BuildPackage
,canutils
))
75 $(foreach file
,$(FILES
),$(eval
$(call BuildPackage
,canutils-
$(file
))))