From f40a0cf5e4c4e31b90a40b1fcd1d6c7a22b2b195 Mon Sep 17 00:00:00 2001 From: Kuan-Yi Li Date: Fri, 12 Jun 2020 09:15:32 +0800 Subject: [PATCH] kmod: fix ALTERNATIVES ALTERNATIVES shall be defined in the package where /sbin/kmod resides -- otherwise kmod tools will break if we install only the library as these tools will be linked to a nonexistent executable. Signed-off-by: Kuan-Yi Li --- utils/kmod/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/kmod/Makefile b/utils/kmod/Makefile index ecd7e3d6df..fd8e5807c3 100644 --- a/utils/kmod/Makefile +++ b/utils/kmod/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=kmod PKG_VERSION:=20 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kmod/ @@ -32,6 +32,12 @@ define Package/kmod/Default TITLE:=Linux kernel module handling URL:=https://www.kernel.org/pub/linux/utils/kernel/kmod/ DEPENDS:=+zlib +endef + + +define Package/kmod +$(call Package/kmod/Default) + TITLE+= (tools) ALTERNATIVES:=\ 200:/sbin/depmod:/sbin/kmod \ 200:/sbin/insmod:/sbin/kmod \ @@ -41,12 +47,6 @@ define Package/kmod/Default 200:/sbin/rmmod:/sbin/kmod endef - -define Package/kmod -$(call Package/kmod/Default) - TITLE+= (tools) -endef - define Package/kmod/description Linux kernel module handling kmod is a set of tools to handle common tasks with Linux kernel modules like