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
:= f5a6949043cc72c001b728d8c218609c5a15f3c33d75614b78c79418fcf00d80
10 PKG_DESCR
:= kernel module utils
11 PKG_SECTION
:= sys
/utils
13 PKG_SITES
:= https
://www.kernel.org
/pub
/linux
/utils
/kernel
/kmod
/
17 PKG_SUBPKGS
:= KMOD LIBKMOD
18 PKGSD_LIBKMOD
:= kernel module library
19 PKGSC_LIBKMOD
:= libs
/misc
21 include $(ADK_TOPDIR
)/mk
/host.mk
22 include $(ADK_TOPDIR
)/mk
/package.mk
24 $(eval
$(call HOST_template
,KMOD
,kmod
,$(PKG_VERSION
)-${PKG_RELEASE}))
25 $(eval
$(call PKG_template
,KMOD
,kmod
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 $(eval
$(call PKG_template
,LIBKMOD
,libkmod
,$(PKG_VERSION
)-${PKG_RELEASE},${PKGSS_LIBKMOD},${PKGSD_LIBKMOD},${PKGSC_LIBKMOD},${PKG_OPTS}))
28 CONFIG_STYLE
:= minimal
29 CONFIGURE_ARGS
+= --host
=${GNU_TARGET_NAME} \
32 HOST_CONFIGURE_ARGS
+= --disable-manpages \
36 ln
-sf kmod
$(STAGING_HOST_DIR
)/usr
/bin
/depmod
37 ln
-sf kmod
$(STAGING_HOST_DIR
)/usr
/bin
/modinfo
40 $(INSTALL_DIR
) $(IDIR_KMOD
)/usr
/bin
41 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/kmod \
43 cd
$(IDIR_KMOD
)/usr
/bin
&& ln
-sf kmod modinfo
44 cd
$(IDIR_KMOD
)/usr
/bin
&& ln
-sf kmod modprobe
45 cd
$(IDIR_KMOD
)/usr
/bin
&& ln
-sf kmod lsmod
46 cd
$(IDIR_KMOD
)/usr
/bin
&& ln
-sf kmod insmod
47 cd
$(IDIR_KMOD
)/usr
/bin
&& ln
-sf kmod depmod
48 cd
$(IDIR_KMOD
)/usr
/bin
&& ln
-sf kmod rmmod
51 $(INSTALL_DIR
) $(IDIR_LIBKMOD
)/usr
/lib
52 $(CP
) $(WRKINST
)/usr
/lib
/libkmod
*.so
* \
53 $(IDIR_LIBKMOD
)/usr
/lib
55 include ${ADK_TOPDIR}/mk
/host-bottom.mk
56 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk