summaryrefslogtreecommitdiff
path: root/package/kmod
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-02 17:51:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-04 17:57:30 +0200
commitd785b774fa19884a9eee7c9a40d5f23893a3443a (patch)
tree5a309d5749572d2d1e99a1aaf0e9b42af06206c0 /package/kmod
parent5d347ea48e4afbdf2ee0fa22cce6898647e6a628 (diff)
add kmod utils subpackage
Diffstat (limited to 'package/kmod')
-rw-r--r--package/kmod/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/package/kmod/Makefile b/package/kmod/Makefile
index f1b5deb16..5cd668e0d 100644
--- a/package/kmod/Makefile
+++ b/package/kmod/Makefile
@@ -5,27 +5,43 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= kmod
PKG_VERSION:= 17
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= bc36d28b12dcb2b664a35411560c5610
-PKG_DESCR:= kernel module loading library
-PKG_SECTION:= libs/misc
+PKG_DESCR:= kernel module utils
+PKG_SECTION:= sys/utils
+PKG_DEPENDS:= libkmod
PKG_URL:= http://profusion.mobi/index.php
PKG_SITES:= https://www.kernel.org/pub/linux/utils/kernel/kmod/
+PKG_LIBNAME:= libkmod
PKG_OPTS:= dev
+PKG_BB:= 1
+
+PKG_SUBPKGS:= KMOD LIBKMOD
+PKGSD_LIBKMOD:= kernel module library
+PKGSC_LIBKMOD:= libs/misc
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBKMOD,libkmod,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBKMOD},${PKGSD_LIBKMOD},${PKGSC_LIBKMOD},${PKG_OPTS}))
CONFIG_STYLE:= minimal
CONFIGURE_ARGS+= --host=${GNU_TARGET_NAME}
kmod-install:
$(INSTALL_DIR) $(IDIR_KMOD)/usr/bin
- $(INSTALL_DIR) $(IDIR_KMOD)/usr/lib
$(INSTALL_BIN) $(WRKINST)/usr/bin/kmod \
$(IDIR_KMOD)/usr/bin
+ cd $(IDIR_KMOD)/usr/bin && ln -sf kmod modinfo
+ cd $(IDIR_KMOD)/usr/bin && ln -sf kmod modprobe
+ cd $(IDIR_KMOD)/usr/bin && ln -sf kmod lsmod
+ cd $(IDIR_KMOD)/usr/bin && ln -sf kmod insmod
+ cd $(IDIR_KMOD)/usr/bin && ln -sf kmod depmod
+ cd $(IDIR_KMOD)/usr/bin && ln -sf kmod rmmod
+
+libkmod-install:
+ $(INSTALL_DIR) $(IDIR_LIBKMOD)/usr/lib
$(CP) $(WRKINST)/usr/lib/libkmod*.so* \
- $(IDIR_KMOD)/usr/lib
+ $(IDIR_LIBKMOD)/usr/lib
include ${TOPDIR}/mk/pkg-bottom.mk