2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=cryptodev-linux
13 PKG_VERSION
:=1.9.git-2017-05-29
16 PKG_SOURCE_URL
:=https
://github.com
/cryptodev-linux
/cryptodev-linux
18 PKG_SOURCE_VERSION
:=a705360197260d28535746ae98c461ba2cfb7a9e
19 PKG_MIRROR_HASH
:=334a8f4df18e36e97459b4c6669c9873c13c4f5dae25243cf41ff70c2ce661d8
21 PKG_MAINTAINER
:=Ansuel Smith
<ansuelsmth@gmail.com
>
23 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
25 include $(INCLUDE_DIR
)/package.mk
27 CRYPTODEV_AUTOLOAD
:= \
30 define KernelPackage
/cryptodev
31 SUBMENU
:=Cryptographic API modules
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
39 $(PKG_BUILD_DIR
)/cryptodev.
$(LINUX_KMOD_SUFFIX
)
40 AUTOLOAD
:=$(call AutoLoad
,50,$(CRYPTODEV_AUTOLOAD
))
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.
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)" \
58 define Build
/Compile
/cryptodev
59 $(MAKE
) $(CRYPTODEV_MAKEOPTS
)
63 $(call Build
/Compile
/cryptodev
)
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
/
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
78 $(eval
$(call KernelPackage
,cryptodev
))