Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= kmod
  5. PKG_VERSION:= 18
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 82835c7f01983634e06ca72b4ee30cc6
  8. PKG_DESCR:= kernel module utils
  9. PKG_SECTION:= sys/utils
  10. PKG_DEPENDS:= libkmod
  11. PKG_URL:= http://profusion.mobi/index.php
  12. PKG_SITES:= https://www.kernel.org/pub/linux/utils/kernel/kmod/
  13. PKG_LIBNAME:= libkmod
  14. PKG_OPTS:= dev
  15. PKG_BB:= 1
  16. PKG_SUBPKGS:= KMOD LIBKMOD
  17. PKGSD_LIBKMOD:= kernel module library
  18. PKGSC_LIBKMOD:= libs/misc
  19. include $(ADK_TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,KMOD,kmod,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,LIBKMOD,libkmod,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBKMOD},${PKGSD_LIBKMOD},${PKGSC_LIBKMOD},${PKG_OPTS}))
  22. CONFIG_STYLE:= minimal
  23. CONFIGURE_ARGS+= --host=${GNU_TARGET_NAME}
  24. kmod-install:
  25. $(INSTALL_DIR) $(IDIR_KMOD)/usr/bin
  26. $(INSTALL_BIN) $(WRKINST)/usr/bin/kmod \
  27. $(IDIR_KMOD)/usr/bin
  28. cd $(IDIR_KMOD)/usr/bin && ln -sf kmod modinfo
  29. cd $(IDIR_KMOD)/usr/bin && ln -sf kmod modprobe
  30. cd $(IDIR_KMOD)/usr/bin && ln -sf kmod lsmod
  31. cd $(IDIR_KMOD)/usr/bin && ln -sf kmod insmod
  32. cd $(IDIR_KMOD)/usr/bin && ln -sf kmod depmod
  33. cd $(IDIR_KMOD)/usr/bin && ln -sf kmod rmmod
  34. libkmod-install:
  35. $(INSTALL_DIR) $(IDIR_LIBKMOD)/usr/lib
  36. $(CP) $(WRKINST)/usr/lib/libkmod*.so* \
  37. $(IDIR_LIBKMOD)/usr/lib
  38. include ${ADK_TOPDIR}/mk/pkg-bottom.mk