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
14 PKG_SOURCE_URL
:=https
://github.com
/linux-can
/can-utils
15 PKG_SOURCE_DATE
:=2017-02-16
16 PKG_SOURCE_VERSION
:=cb33a55720716cbe01e6025a2bda74a1b7e492d3
17 PKG_MIRROR_HASH
:=d9c01eeff3d81a28161ca5c3937ec005a1f49ca3eb97bee0164d53cc66365786
19 PKG_MAINTAINER
:=Anton Glukhov
<anton.a.glukhov@gmail.com
>
24 include $(INCLUDE_DIR
)/package.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
)
42 TITLE
:=Utility
$(1) from the CAN utilities
45 define Package
/$(addprefix canutils-
,$(1))/description
46 Utility
$(1) from the CAN utilities package.
50 FILES
:=canbusload can-calc-bit-timing candump \
51 cangen cangw canplayer cansniffer cansend \
52 canfdtest asc2log log2asc log2long bcmserver \
53 canlogserver isotpdump isotpperf isotprecv \
54 isotpsend isotpserver isotpsniffer isotptun \
55 slcan_attach slcand slcanpty
58 $(foreach a
,$(FILES
),$(eval
$(call GenPlugin
,$(a
))))
60 define Package
/canutils
/install
65 define Package
/canutils-
$(1)/install
66 $(INSTALL_DIR
) $$(1)/usr
/bin
68 $(PKG_BUILD_DIR
)/$(1) \
73 $(foreach file
,$(FILES
),$(eval
$(call PartInstall
,$(file
))))
75 $(eval
$(call BuildPackage
,canutils
))
76 $(foreach file
,$(FILES
),$(eval
$(call BuildPackage
,canutils-
$(file
))))