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 <kyli@abysm.org>
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/
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 \
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