Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.12
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_URL:=https://codeload.github.com/$(PKG_NAME)/$(PKG_NAME)/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_HASH:=f51c2254749233b1b1d7ec9445158bd709f124f88e1c650fe2faac83c3a81938
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
  19. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
  20. include $(INCLUDE_DIR)/package.mk
  21. define KernelPackage/cryptodev
  22. SUBMENU:=Cryptographic API modules
  23. TITLE:=Driver for cryptographic acceleration
  24. URL:=http://cryptodev-linux.org/
  25. VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  26. DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
  27. FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
  28. AUTOLOAD:=$(call AutoLoad,50,cryptodev)
  29. MODPARAMS.cryptodev:=cryptodev_verbosity=-1
  30. endef
  31. define KernelPackage/cryptodev/description
  32. This is a driver for that allows to use the Linux kernel supported
  33. hardware ciphers by user-space applications.
  34. endef
  35. define Build/Configure
  36. endef
  37. define Build/Compile
  38. $(MAKE) -C $(PKG_BUILD_DIR) \
  39. $(KERNEL_MAKE_FLAGS) \
  40. KERNEL_DIR="$(LINUX_DIR)"
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
  44. $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
  45. endef
  46. $(eval $(call KernelPackage,cryptodev))