noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / utils / cryptodev-linux / Makefile
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
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=cryptodev-linux
13 PKG_VERSION:=1.9.git-2017-05-29
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_URL:=https://github.com/cryptodev-linux/cryptodev-linux
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=a705360197260d28535746ae98c461ba2cfb7a9e
19 PKG_MIRROR_HASH:=553069ecf1f3d5d5652404aaf438610f555c94db4369c7c1db85210c4e3cdfee
20
21 PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
22
23 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
24
25 include $(INCLUDE_DIR)/package.mk
26
27 CRYPTODEV_AUTOLOAD:= \
28 cryptodev
29
30 define KernelPackage/cryptodev
31 SUBMENU:=Cryptographic API modules
32 DEFAULT:=m if ALL
33 TITLE:=Driver for cryptographic acceleration
34 URL:=http://cryptodev-linux.org/
35 MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
36 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
37 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
38 FILES:= \
39 $(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
40 AUTOLOAD:=$(call AutoLoad,50,$(CRYPTODEV_AUTOLOAD))
41 endef
42
43 define KernelPackage/cryptodev/description
44 This is a driver for that allows to use the Linux kernel supported
45 hardware ciphers by user-space applications.
46 endef
47
48 CRYPTODEV_MAKEOPTS= -C $(PKG_BUILD_DIR) \
49 PATH="$(TARGET_PATH)" \
50 ARCH="$(LINUX_KARCH)" \
51 CROSS_COMPILE="$(TARGET_CROSS)" \
52 TOOLPREFIX="$(KERNEL_CROSS)" \
53 TOOLPATH="$(KERNEL_CROSS)" \
54 KERNEL_DIR="$(LINUX_DIR)" \
55 LDOPTS=" " \
56 DOMULTI=1
57
58 define Build/Compile/cryptodev
59 $(MAKE) $(CRYPTODEV_MAKEOPTS)
60 endef
61
62 define Build/Compile
63 $(call Build/Compile/cryptodev)
64 endef
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
68 $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
69 endef
70
71 define KernelPackage/cryptodev/install
72 $(INSTALL_DIR) $(1)/etc/modules.d
73 $(INSTALL_DATA) ./files/cryptodev.modules $(1)/etc/modules.d/50-cryptodev
74 $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
75 $(INSTALL_DIR) $(1)/usr/sbin
76 endef
77
78 $(eval $(call KernelPackage,cryptodev))