2014-06-03 18:18:34 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cryptodev-linux
|
2017-04-24 21:49:51 +00:00
|
|
|
PKG_VERSION:=1.9.git-2017-05-29
|
2017-04-24 21:49:51 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-06-03 18:18:34 +00:00
|
|
|
|
2017-04-24 21:49:51 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/cryptodev-linux/cryptodev-linux
|
2017-02-20 17:26:23 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2017-04-24 21:49:51 +00:00
|
|
|
PKG_SOURCE_VERSION:=a705360197260d28535746ae98c461ba2cfb7a9e
|
2017-09-23 04:26:51 +00:00
|
|
|
PKG_MIRROR_HASH:=334a8f4df18e36e97459b4c6669c9873c13c4f5dae25243cf41ff70c2ce661d8
|
2017-01-13 14:32:43 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-06-03 18:18:34 +00:00
|
|
|
|
2017-06-03 19:12:37 +00:00
|
|
|
PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
|
2017-03-18 11:08:32 +00:00
|
|
|
|
2014-06-03 18:18:34 +00:00
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
CRYPTODEV_AUTOLOAD:= \
|
|
|
|
cryptodev
|
|
|
|
|
|
|
|
define KernelPackage/cryptodev
|
|
|
|
SUBMENU:=Cryptographic API modules
|
|
|
|
DEFAULT:=m if ALL
|
|
|
|
TITLE:=Driver for cryptographic acceleration
|
|
|
|
URL:=http://cryptodev-linux.org/
|
2014-07-30 06:35:25 +00:00
|
|
|
MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
|
2014-06-03 18:18:34 +00:00
|
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
2016-01-20 15:08:57 +00:00
|
|
|
DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
|
2014-06-03 18:18:34 +00:00
|
|
|
FILES:= \
|
|
|
|
$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,50,$(CRYPTODEV_AUTOLOAD))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/cryptodev/description
|
|
|
|
This is a driver for that allows to use the Linux kernel supported
|
|
|
|
hardware ciphers by user-space applications.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CRYPTODEV_MAKEOPTS= -C $(PKG_BUILD_DIR) \
|
|
|
|
PATH="$(TARGET_PATH)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
TOOLPREFIX="$(KERNEL_CROSS)" \
|
|
|
|
TOOLPATH="$(KERNEL_CROSS)" \
|
|
|
|
KERNEL_DIR="$(LINUX_DIR)" \
|
|
|
|
LDOPTS=" " \
|
|
|
|
DOMULTI=1
|
|
|
|
|
|
|
|
define Build/Compile/cryptodev
|
|
|
|
$(MAKE) $(CRYPTODEV_MAKEOPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/cryptodev)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/cryptodev/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/modules.d
|
2017-03-18 11:08:32 +00:00
|
|
|
$(INSTALL_DATA) ./files/cryptodev.modules $(1)/etc/modules.d/50-cryptodev
|
2014-06-03 18:18:34 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,cryptodev))
|