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_MAINTAINER
:=Ansuel Smith ansuelsmth@gmail.com
25 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
27 include $(INCLUDE_DIR
)/package.mk
29 CRYPTODEV_AUTOLOAD
:= \
32 define KernelPackage
/cryptodev
33 SUBMENU
:=Cryptographic API modules
35 TITLE
:=Driver for cryptographic acceleration
36 URL
:=http
://cryptodev-linux.org
/
37 MAINTAINER
:=Nikos Mavrogiannopoulos
<n.mavrogiannopoulos@gmail.com
>
38 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
39 DEPENDS
:=+kmod-crypto-authenc
+kmod-crypto-hash
41 $(PKG_BUILD_DIR
)/cryptodev.
$(LINUX_KMOD_SUFFIX
)
42 AUTOLOAD
:=$(call AutoLoad
,50,$(CRYPTODEV_AUTOLOAD
))
45 define KernelPackage
/cryptodev
/description
46 This is a driver for that allows to use the Linux kernel supported
47 hardware ciphers by user-space applications.
50 CRYPTODEV_MAKEOPTS
= -C
$(PKG_BUILD_DIR
) \
51 PATH
="$(TARGET_PATH)" \
52 ARCH
="$(LINUX_KARCH)" \
53 CROSS_COMPILE
="$(TARGET_CROSS)" \
54 TOOLPREFIX
="$(KERNEL_CROSS)" \
55 TOOLPATH
="$(KERNEL_CROSS)" \
56 KERNEL_DIR
="$(LINUX_DIR)" \
60 define Build
/Compile
/cryptodev
61 $(MAKE
) $(CRYPTODEV_MAKEOPTS
)
65 $(call Build
/Compile
/cryptodev
)
68 define Build
/InstallDev
69 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include/crypto
70 $(CP
) $(PKG_BUILD_DIR
)/crypto
/cryptodev.h
$(STAGING_DIR
)/usr
/include/crypto
/
73 define KernelPackage
/cryptodev
/install
74 $(INSTALL_DIR
) $(1)/etc
/modules.d
75 $(INSTALL_DATA
) .
/files
/cryptodev.modules
$(1)/etc
/modules.d
/50-cryptodev
76 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
77 $(INSTALL_DIR
) $(1)/usr
/sbin
80 $(eval
$(call KernelPackage
,cryptodev
))