You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/kernel.mk
  10. PKG_NAME:=cryptodev-linux
  11. PKG_VERSION:=1.9.git-2017-10-04
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_URL:=https://github.com/cryptodev-linux/cryptodev-linux
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=0a54e38b264d9a3bed74c642a61b88191660d0f8
  16. PKG_MIRROR_HASH:=af3c303afe7ff995b120add6101261a652a6478a2a69018dd740f49a8b14ed09
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
  20. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  21. include $(INCLUDE_DIR)/package.mk
  22. CRYPTODEV_AUTOLOAD:= \
  23. cryptodev
  24. define KernelPackage/cryptodev
  25. SUBMENU:=Cryptographic API modules
  26. DEFAULT:=m if ALL
  27. TITLE:=Driver for cryptographic acceleration
  28. URL:=http://cryptodev-linux.org/
  29. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  30. VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  31. DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
  32. FILES:= \
  33. $(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
  34. AUTOLOAD:=$(call AutoLoad,50,$(CRYPTODEV_AUTOLOAD))
  35. MODPARAMS.cryptodev:= cryptodev_verbosity=-1
  36. endef
  37. define KernelPackage/cryptodev/description
  38. This is a driver for that allows to use the Linux kernel supported
  39. hardware ciphers by user-space applications.
  40. endef
  41. CRYPTODEV_MAKEOPTS= -C $(PKG_BUILD_DIR) \
  42. PATH="$(TARGET_PATH)" \
  43. ARCH="$(LINUX_KARCH)" \
  44. CROSS_COMPILE="$(TARGET_CROSS)" \
  45. TOOLPREFIX="$(KERNEL_CROSS)" \
  46. TOOLPATH="$(KERNEL_CROSS)" \
  47. KERNEL_DIR="$(LINUX_DIR)" \
  48. LDOPTS=" " \
  49. DOMULTI=1
  50. define Build/Compile/cryptodev
  51. $(MAKE) $(CRYPTODEV_MAKEOPTS)
  52. endef
  53. define Build/Compile
  54. $(call Build/Compile/cryptodev)
  55. endef
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
  58. $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
  59. endef
  60. $(eval $(call KernelPackage,cryptodev))