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
16 PKG_SOURCE_URL
:=https
://codeload.github.com
/$(PKG_NAME
)/$(PKG_NAME
)/tar.gz
/$(PKG_NAME
)-$(PKG_VERSION
)?
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_HASH
:=833ab7c5c88d2b700a7c702a151254c089a3058886a63cc7d12630e364b8ea83
20 PKG_LICENSE_FILES
:=COPYING
22 PKG_MAINTAINER
:=Ansuel Smith
<ansuelsmth@gmail.com
>
24 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_NAME
)-$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
28 define KernelPackage
/cryptodev
29 SUBMENU
:=Cryptographic API modules
31 TITLE
:=Driver for cryptographic acceleration
32 URL
:=http
://cryptodev-linux.org
/
33 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
34 DEPENDS
:=+kmod-crypto-authenc
+kmod-crypto-hash
35 FILES
:=$(PKG_BUILD_DIR
)/cryptodev.
$(LINUX_KMOD_SUFFIX
)
36 AUTOLOAD
:=$(call AutoLoad
,50,cryptodev
)
37 MODPARAMS.cryptodev
:=cryptodev_verbosity
=-1
40 define KernelPackage
/cryptodev
/description
41 This is a driver for that allows to use the Linux kernel supported
42 hardware ciphers by user-space applications.
45 define Build
/Configure
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 $(KERNEL_MAKE_FLAGS
) \
51 KERNEL_DIR
="$(LINUX_DIR)"
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include/crypto
56 $(CP
) $(PKG_BUILD_DIR
)/crypto
/cryptodev.h
$(STAGING_DIR
)/usr
/include/crypto
/
59 $(eval
$(call KernelPackage
,cryptodev
))