Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.10
  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:=833ab7c5c88d2b700a7c702a151254c089a3058886a63cc7d12630e364b8ea83
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Ansuel Smith <[email protected]>
  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. DEFAULT:=m if ALL
  24. TITLE:=Driver for cryptographic acceleration
  25. URL:=http://cryptodev-linux.org/
  26. VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  27. DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
  28. FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
  29. AUTOLOAD:=$(call AutoLoad,50,cryptodev)
  30. MODPARAMS.cryptodev:=cryptodev_verbosity=-1
  31. endef
  32. define KernelPackage/cryptodev/description
  33. This is a driver for that allows to use the Linux kernel supported
  34. hardware ciphers by user-space applications.
  35. endef
  36. define Build/Configure
  37. endef
  38. define Build/Compile
  39. $(MAKE) -C $(PKG_BUILD_DIR) \
  40. $(KERNEL_MAKE_FLAGS) \
  41. KERNEL_DIR="$(LINUX_DIR)"
  42. endef
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
  45. $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
  46. endef
  47. $(eval $(call KernelPackage,cryptodev))