cryptodev-linux: move from packages feed
[openwrt/openwrt.git] / package / kernel / cryptodev-linux / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=cryptodev-linux
13 PKG_VERSION:=1.9.git-2018-11-02
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_URL:=https://github.com/cryptodev-linux/cryptodev-linux
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=f1a693000d116718379f8b53ed7bc6b9c0f7de27
19 PKG_MIRROR_HASH:=340d314e2a88bf2449ccee906b141e085d376f6e2a94a64e36254e8376323169
20 PKG_LICENSE:=GPL-2.0
21 PKG_LICENSE_FILES:=COPYING
22
23 PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
24
25 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define KernelPackage/cryptodev
30 SUBMENU:=Cryptographic API modules
31 DEFAULT:=m if ALL
32 TITLE:=Driver for cryptographic acceleration
33 URL:=http://cryptodev-linux.org/
34 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
35 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
36 FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
37 AUTOLOAD:=$(call AutoLoad,50,cryptodev)
38 MODPARAMS.cryptodev:=cryptodev_verbosity=-1
39 endef
40
41 define KernelPackage/cryptodev/description
42 This is a driver for that allows to use the Linux kernel supported
43 hardware ciphers by user-space applications.
44 endef
45
46 define Build/Configure
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 $(KERNEL_MAKE_FLAGS) \
52 KERNEL_DIR="$(LINUX_DIR)"
53 endef
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
57 $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
58 endef
59
60 $(eval $(call KernelPackage,cryptodev))