config: add ARM PMUv3 for kernel 6.6
[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.13
14 PKG_RELEASE:=1
15
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:=33b7915c46eb39a37110e88c681423c0dd0df25d784b6e1475ac3196367f0db5
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
23
24 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define KernelPackage/cryptodev
29 SUBMENU:=Cryptographic API modules
30 TITLE:=Driver for cryptographic acceleration
31 URL:=http://cryptodev-linux.org/
32 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash
33 FILES:=$(PKG_BUILD_DIR)/cryptodev.$(LINUX_KMOD_SUFFIX)
34 AUTOLOAD:=$(call AutoLoad,50,cryptodev)
35 MODPARAMS.cryptodev:=cryptodev_verbosity=-1
36 endef
37
38 define KernelPackage/cryptodev/description
39 This is a driver for that allows to use the Linux kernel supported
40 hardware ciphers by user-space applications.
41 endef
42
43 define Build/Configure
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 $(KERNEL_MAKE_FLAGS) \
49 KERNEL_DIR="$(LINUX_DIR)"
50 endef
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/crypto
54 $(CP) $(PKG_BUILD_DIR)/crypto/cryptodev.h $(STAGING_DIR)/usr/include/crypto/
55 endef
56
57 $(eval $(call KernelPackage,cryptodev))