Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-2018-11-02
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_URL:=https://github.com/cryptodev-linux/cryptodev-linux
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=f1a693000d116718379f8b53ed7bc6b9c0f7de27
  16. PKG_MIRROR_HASH:=340d314e2a88bf2449ccee906b141e085d376f6e2a94a64e36254e8376323169
  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. define KernelPackage/cryptodev
  23. SUBMENU:=Cryptographic API modules
  24. DEFAULT:=m if ALL
  25. TITLE:=Driver for cryptographic acceleration
  26. URL:=http://cryptodev-linux.org/
  27. VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  28. DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
  29. FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
  30. AUTOLOAD:=$(call AutoLoad,50,cryptodev)
  31. MODPARAMS.cryptodev:=cryptodev_verbosity=-1
  32. endef
  33. define KernelPackage/cryptodev/description
  34. This is a driver for that allows to use the Linux kernel supported
  35. hardware ciphers by user-space applications.
  36. endef
  37. define Build/Configure
  38. endef
  39. define Build/Compile
  40. $(MAKE) -C $(PKG_BUILD_DIR) \
  41. $(KERNEL_MAKE_FLAGS) \
  42. KERNEL_DIR="$(LINUX_DIR)"
  43. endef
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
  46. $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
  47. endef
  48. $(eval $(call KernelPackage,cryptodev))