canutils: switch to CMake
authorRosen Penev <redacted>
Sat, 4 Jul 2020 21:50:23 +0000 (14:50 -0700)
committerRosen Penev <redacted>
Sat, 4 Jul 2020 22:30:22 +0000 (15:30 -0700)
Allows simplifying the Makefile. Faster compilation as well.

Revert b70cb0ef5ed196247bd4bcce3cb84167420eeb4d

That commit was misleading and ended up bloating the Utilities section.

Signed-off-by: Rosen Penev <redacted>
utils/canutils/Makefile

index 8e40399e0f1b7b5a76266d4b5db191f7d789b4d0..acc282d2094816af2c345ca89858c902b5ee9f2e 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=canutils
 PKG_VERSION:=2020.02.04
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/linux-can/can-utils/tar.gz/v$(PKG_VERSION)?
@@ -18,12 +18,12 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/can-utils-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
 PKG_LICENSE:=GPL-2.0-or-later
+PKG_LICENSE_FILES:=COPYING
 
-PKG_FIXUP:=autoreconf
-PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
 
 define Package/canutils/Default
   SECTION:=utils
@@ -41,6 +41,7 @@ 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
git clone https://git.99rst.org/PROJECT