nano: update to 2.7.1
[openadk.git] / package / kmod / Makefile
blob495a7f9fbba02e0eace676c975e743b1e598d62c
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= kmod
7 PKG_VERSION:= 23
8 PKG_RELEASE:= 1
9 PKG_HASH:= d303d5519faec9d69e1132f6b37db2579db17a7fb5c1517da0115d03ba168155
10 PKG_DESCR:= kernel module utils
11 PKG_SECTION:= sys/utils
12 PKG_DEPENDS:= libkmod
13 PKG_URL:= http://profusion.mobi/index.php
14 PKG_SITES:= https://www.kernel.org/pub/linux/utils/kernel/kmod/
15 PKG_LIBNAME:= libkmod
16 PKG_OPTS:= dev
17 PKG_BB:= 1
19 PKG_SUBPKGS:= KMOD LIBKMOD
20 PKGSD_LIBKMOD:= kernel module library
21 PKGSC_LIBKMOD:= libs/misc
23 include $(ADK_TOPDIR)/mk/host.mk
24 include $(ADK_TOPDIR)/mk/package.mk
26 $(eval $(call HOST_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE}))
27 $(eval $(call PKG_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
28 $(eval $(call PKG_template,LIBKMOD,libkmod,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBKMOD},${PKGSD_LIBKMOD},${PKGSC_LIBKMOD},${PKG_OPTS}))
30 CONFIG_STYLE:= minimal
31 CONFIGURE_ARGS+= --host=${GNU_TARGET_NAME} \
32 --disable-manpages
34 HOST_CONFIGURE_ARGS+= --disable-manpages \
35 --disable-logging
37 hostpost-install:
38 ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/depmod
39 ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/modinfo
41 kmod-install:
42 $(INSTALL_DIR) $(IDIR_KMOD)/usr/bin
43 $(INSTALL_BIN) $(WRKINST)/usr/bin/kmod \
44 $(IDIR_KMOD)/usr/bin
45 cd $(IDIR_KMOD)/usr/bin && ln -sf kmod modinfo
46 cd $(IDIR_KMOD)/usr/bin && ln -sf kmod modprobe
47 cd $(IDIR_KMOD)/usr/bin && ln -sf kmod lsmod
48 cd $(IDIR_KMOD)/usr/bin && ln -sf kmod insmod
49 cd $(IDIR_KMOD)/usr/bin && ln -sf kmod depmod
50 cd $(IDIR_KMOD)/usr/bin && ln -sf kmod rmmod
52 libkmod-install:
53 $(INSTALL_DIR) $(IDIR_LIBKMOD)/usr/lib
54 $(CP) $(WRKINST)/usr/lib/libkmod*.so* \
55 $(IDIR_LIBKMOD)/usr/lib
57 include ${ADK_TOPDIR}/mk/host-bottom.mk
58 include ${ADK_TOPDIR}/mk/pkg-bottom.mk