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
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
18 PKG_MIRROR_HASH
:=d2b49408682795a0e200c0e54a8605f72be4b11088e07b1cd4d48f6c1427b0f4
19 PKG_SOURCE_URL
:=https
://github.com
/cryptodev-linux
/cryptodev-linux.git
20 PKG_SOURCE_VERSION
:=87d959d9a279c055b361de8e730fab6a7144edd7
22 PKG_MAINTAINER
:=Ansuel Smith ansuelsmth@gmail.com
24 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
28 CRYPTODEV_AUTOLOAD
:= \
31 define KernelPackage
/cryptodev
32 SUBMENU
:=Cryptographic API modules
34 TITLE
:=Driver for cryptographic acceleration
35 URL
:=http
://cryptodev-linux.org
/
36 MAINTAINER
:=Nikos Mavrogiannopoulos
<n.mavrogiannopoulos@gmail.com
>
37 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
38 DEPENDS
:=+kmod-crypto-authenc
+kmod-crypto-hash
40 $(PKG_BUILD_DIR
)/cryptodev.
$(LINUX_KMOD_SUFFIX
)
41 AUTOLOAD
:=$(call AutoLoad
,50,$(CRYPTODEV_AUTOLOAD
))
44 define KernelPackage
/cryptodev
/description
45 This is a driver for that allows to use the Linux kernel supported
46 hardware ciphers by user-space applications.
49 CRYPTODEV_MAKEOPTS
= -C
$(PKG_BUILD_DIR
) \
50 PATH
="$(TARGET_PATH)" \
51 ARCH
="$(LINUX_KARCH)" \
52 CROSS_COMPILE
="$(TARGET_CROSS)" \
53 TOOLPREFIX
="$(KERNEL_CROSS)" \
54 TOOLPATH
="$(KERNEL_CROSS)" \
55 KERNEL_DIR
="$(LINUX_DIR)" \
59 define Build
/Compile
/cryptodev
60 $(MAKE
) $(CRYPTODEV_MAKEOPTS
)
64 $(call Build
/Compile
/cryptodev
)
67 define Build
/InstallDev
68 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include/crypto
69 $(CP
) $(PKG_BUILD_DIR
)/crypto
/cryptodev.h
$(STAGING_DIR
)/usr
/include/crypto
/
72 define KernelPackage
/cryptodev
/install
73 $(INSTALL_DIR
) $(1)/etc
/modules.d
74 $(INSTALL_DATA
) .
/files
/cryptodev.modules
$(1)/etc
/modules.d
/50-cryptodev
75 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
76 $(INSTALL_DIR
) $(1)/usr
/sbin
79 $(eval
$(call KernelPackage
,cryptodev
))