python3: update to 3.11.10
[openadk.git] / package / kmod / Makefile
blobc464109272a167627b6838f89bc248faa4a102e5
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:= 31
8 PKG_RELEASE:= 1
9 PKG_HASH:= f5a6949043cc72c001b728d8c218609c5a15f3c33d75614b78c79418fcf00d80
10 PKG_DESCR:= kernel module utils
11 PKG_SECTION:= sys/utils
12 PKG_DEPENDS:= libkmod
13 PKG_SITES:= https://www.kernel.org/pub/linux/utils/kernel/kmod/
14 PKG_LIBNAME:= libkmod
15 PKG_OPTS:= dev
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} \
30 --disable-manpages
32 HOST_CONFIGURE_ARGS+= --disable-manpages \
33 --disable-logging
35 hostpost-install:
36 ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/depmod
37 ln -sf kmod $(STAGING_HOST_DIR)/usr/bin/modinfo
39 kmod-install:
40 $(INSTALL_DIR) $(IDIR_KMOD)/usr/bin
41 $(INSTALL_BIN) $(WRKINST)/usr/bin/kmod \
42 $(IDIR_KMOD)/usr/bin
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
50 libkmod-install:
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