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-05-29
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_URL:=https://github.com/cryptodev-linux/cryptodev-linux
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=a705360197260d28535746ae98c461ba2cfb7a9e
  16. PKG_MIRROR_HASH:=334a8f4df18e36e97459b4c6669c9873c13c4f5dae25243cf41ff70c2ce661d8
  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))