Aucune description

Makefile 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.6
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://download.gna.org/cryptodev-linux/
  15. PKG_MD5SUM:=eade38998313c25fd7934719cdf8a2ea
  16. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. CRYPTODEV_AUTOLOAD:= \
  19. cryptodev
  20. define KernelPackage/cryptodev
  21. SUBMENU:=Cryptographic API modules
  22. DEFAULT:=m if ALL
  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-core +kmod-crypto-authenc +kmod-crypto-hash
  27. FILES:= \
  28. $(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
  29. AUTOLOAD:=$(call AutoLoad,50,$(CRYPTODEV_AUTOLOAD))
  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. CRYPTODEV_MAKEOPTS= -C $(PKG_BUILD_DIR) \
  36. PATH="$(TARGET_PATH)" \
  37. ARCH="$(LINUX_KARCH)" \
  38. CROSS_COMPILE="$(TARGET_CROSS)" \
  39. TOOLPREFIX="$(KERNEL_CROSS)" \
  40. TOOLPATH="$(KERNEL_CROSS)" \
  41. KERNEL_DIR="$(LINUX_DIR)" \
  42. LDOPTS=" " \
  43. DOMULTI=1
  44. define Build/Compile/cryptodev
  45. $(MAKE) $(CRYPTODEV_MAKEOPTS)
  46. endef
  47. define Build/Compile
  48. $(call Build/Compile/cryptodev)
  49. endef
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
  52. $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
  53. endef
  54. define KernelPackage/cryptodev/install
  55. $(INSTALL_DIR) $(1)/etc/modules.d
  56. $(INSTALL_DATA) ./files/cryptodev.modules $(1)/etc/modules.d/80-cryptodev
  57. $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
  58. $(INSTALL_DIR) $(1)/usr/sbin
  59. endef
  60. $(eval $(call KernelPackage,cryptodev))