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
9 PKG_HASH
:= d303d5519faec9d69e1132f6b37db2579db17a7fb5c1517da0115d03ba168155
10 PKG_DESCR
:= kernel module utils
11 PKG_SECTION
:= sys
/utils
13 PKG_URL
:= http
://profusion.mobi
/index.php
14 PKG_SITES
:= https
://www.kernel.org
/pub
/linux
/utils
/kernel
/kmod
/
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} \
34 HOST_CONFIGURE_ARGS
+= --disable-manpages \
38 ln
-sf kmod
$(STAGING_HOST_DIR
)/usr
/bin
/depmod
39 ln
-sf kmod
$(STAGING_HOST_DIR
)/usr
/bin
/modinfo
42 $(INSTALL_DIR
) $(IDIR_KMOD
)/usr
/bin
43 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/kmod \
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
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