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.8.git-2017-02-09
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
19 PKG_MIRROR_HASH
:=627ce96e3ba66ca9c8e14f5d80193061fbe9d45cd8d4b69a1bf4dd5a2d50eed8
20 PKG_SOURCE_URL
:=https
://github.com
/cryptodev-linux
/cryptodev-linux.git
21 PKG_SOURCE_VERSION
:=6818263667ca488f9b1c86e36ea624c4ea1c309f
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
/80-cryptodev
74 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
75 $(INSTALL_DIR
) $(1)/usr
/sbin
78 $(eval
$(call KernelPackage
,cryptodev
))