1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit linux-info linux-mod
7 DESCRIPTION="device that allows access to Linux kernel cryptographic drivers"
8 HOMEPAGE="http://cryptodev-linux.org/index.html"
9 SRC_URI="http://nwl.cc/pub/cryptodev-linux/${PN}-linux-${PV}.tar.gz"
10 KEYWORDS="~amd64 ~arm ~x86"
16 DEPEND="virtual/linux-sources"
18 #test requires that the module is already loaded
21 S=${WORKDIR}/${PN}-linux-${PV}
23 MODULE_NAMES="cryptodev(extra:${S})"
24 BUILD_PARAMS="KERNEL_DIR=\"\${KV_OUT_DIR}\""
27 "${FILESDIR}"/cryptodev-1.9-fix-build-with-4.14-629958.patch
28 "${FILESDIR}"/ioctl.c-Fix-build-with-linux-4.17.patch
32 if use kernel_linux ; then
33 CONFIG_CHECK="~CRYPTO ~CRYPTO_BLKCIPHER ~CRYPTO_AEAD"
39 if use kernel_linux ; then
42 die "cryptodev ebuild only support linux"
50 if use examples ; then
54 insinto /usr/include/crypto
55 doins crypto/cryptodev.h