Browse Source

Merge pull request #12468 from zhanhb/kmod-alternatives

kmod: add ALTERNATIVES
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
ce744f6985
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 13 deletions
  1. +8
    -13
      utils/kmod/Makefile

+ 8
- 13
utils/kmod/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=kmod PKG_NAME:=kmod
PKG_VERSION:=20 PKG_VERSION:=20
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kmod/ PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kmod/
@ -32,6 +32,13 @@ define Package/kmod/Default
TITLE:=Linux kernel module handling TITLE:=Linux kernel module handling
URL:=https://www.kernel.org/pub/linux/utils/kernel/kmod/ URL:=https://www.kernel.org/pub/linux/utils/kernel/kmod/
DEPENDS:=+zlib DEPENDS:=+zlib
ALTERNATIVES:=\
200:/sbin/depmod:/sbin/kmod \
200:/sbin/insmod:/sbin/kmod \
200:/sbin/lsmod:/sbin/kmod \
200:/sbin/modinfo:/sbin/kmod \
200:/sbin/modprobe:/sbin/kmod \
200:/sbin/rmmod:/sbin/kmod
endef endef
@ -46,21 +53,9 @@ Linux kernel module handling
insert, remove, list, check properties, resolve dependencies and aliases. insert, remove, list, check properties, resolve dependencies and aliases.
endef endef
LEGACY_BINARIES:= \
depmod \
insmod \
lsmod \
modinfo \
modprobe \
rmmod
define Package/kmod/install define Package/kmod/install
$(INSTALL_DIR) $(1)/sbin $(INSTALL_DIR) $(1)/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/kmod $(1)/sbin $(CP) $(PKG_INSTALL_DIR)/usr/bin/kmod $(1)/sbin
for b in $(LEGACY_BINARIES); do \
ln -sf kmod $(1)/sbin/$$$$b ; \
done
endef endef


Loading…
Cancel
Save