mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
Update build targets and backport an upstream fix for missing header. Changelog: https://github.com/linux-can/can-utils/releases/tag/v2025.01 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
77 lines
2.0 KiB
Makefile
77 lines
2.0 KiB
Makefile
#
|
|
# 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
|
|
PKG_VERSION:=2025.01
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
|
PKG_SOURCE_URL:=https://github.com/linux-can/can-utils
|
|
PKG_MIRROR_HASH:=d7941dba33718b6375afef1202491d065355ad361c6fda0aa464260012a1d67d
|
|
|
|
PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=LICENSES/BSD-3-Clause LICENSES/GPL-2.0-only.txt LICENSES/Linux-syscall-note.txt
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
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
|
|
|
|
define GenPlugin
|
|
define Package/$(addprefix canutils-,$(1))
|
|
$(call Package/canutils/Default)
|
|
TITLE:=Utility $(1) from the CAN utilities
|
|
DEPENDS:=canutils
|
|
endef
|
|
|
|
define Package/$(addprefix canutils-,$(1))/description
|
|
Utility $(1) from the CAN utilities package.
|
|
endef
|
|
endef
|
|
|
|
FILES:= \
|
|
asc2log bcmserver canbusload can-calc-bit-timing \
|
|
candump canfdtest cangen cangw canlogserver canplayer \
|
|
cansend cansequence cansniffer isotpdump isotpperf isotprecv \
|
|
isotpsend isotpserver isotpsniffer isotptun j1939acd j1939cat \
|
|
j1939spy j1939sr j1939-timedate-cli j1939-timedate-srv log2asc \
|
|
log2long mcp251xfd-dump slcan_attach slcand slcanpty testj1939
|
|
|
|
$(foreach a,$(FILES),$(eval $(call GenPlugin,$(a))))
|
|
|
|
define PartInstall
|
|
define Package/canutils-$(1)/install
|
|
$(INSTALL_DIR) $$(1)/usr/bin
|
|
$(INSTALL_BIN) \
|
|
$(PKG_INSTALL_DIR)/usr/bin/$(1) \
|
|
$$(1)/usr/bin/
|
|
endef
|
|
endef
|
|
|
|
$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
|
|
|
|
define Package/canutils/install
|
|
true
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,canutils))
|
|
$(foreach file,$(FILES),$(eval $(call BuildPackage,canutils-$(file))))
|