Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.13
  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:=33b7915c46eb39a37110e88c681423c0dd0df25d784b6e1475ac3196367f0db5
  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. TITLE:=Driver for cryptographic acceleration
  24. URL:=http://cryptodev-linux.org/
  25. DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
  26. FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
  27. AUTOLOAD:=$(call AutoLoad,50,cryptodev)
  28. MODPARAMS.cryptodev:=cryptodev_verbosity=-1
  29. endef
  30. define KernelPackage/cryptodev/description
  31. This is a driver for that allows to use the Linux kernel supported
  32. hardware ciphers by user-space applications.
  33. endef
  34. define Build/Configure
  35. endef
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR) \
  38. $(KERNEL_MAKE_FLAGS) \
  39. KERNEL_DIR="$(LINUX_DIR)"
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
  43. $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
  44. endef
  45. $(eval $(call KernelPackage,cryptodev))