Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
require cryptodev.inc
|
||||
|
||||
SUMMARY = "A /dev/crypto device driver header file"
|
||||
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
# Just install cryptodev.h which is the only header file needed to be exported
|
||||
do_install() {
|
||||
install -D ${S}/crypto/cryptodev.h ${D}${includedir}/crypto/cryptodev.h
|
||||
}
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,16 @@
|
||||
require cryptodev.inc
|
||||
|
||||
SUMMARY = "A /dev/crypto device driver kernel module"
|
||||
|
||||
inherit module
|
||||
|
||||
# Header file provided by a separate package
|
||||
DEPENDS += "cryptodev-linux"
|
||||
|
||||
SRC_URI += "file://0001-Disable-installing-header-file-provided-by-another-p.patch \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
|
||||
|
||||
RCONFLICTS:${PN} = "ocf-linux"
|
||||
RREPLACES:${PN} = "ocf-linux"
|
||||
@@ -0,0 +1,21 @@
|
||||
require cryptodev.inc
|
||||
|
||||
SUMMARY = "A test suite for /dev/crypto device driver"
|
||||
|
||||
DEPENDS += "openssl"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-tests-Makefile-do-not-use-Werror.patch \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE='KERNEL_DIR="${STAGING_EXECPREFIXDIR}" PREFIX="${D}"'
|
||||
|
||||
do_compile() {
|
||||
oe_runmake tests
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake install_tests
|
||||
}
|
||||
|
||||
FILES:${PN} = "${bindir}/*"
|
||||
@@ -0,0 +1,17 @@
|
||||
HOMEPAGE = "http://cryptodev-linux.org/"
|
||||
DESCRIPTION = "Cryptodev-linux is a device that allows access to Linux kernel \
|
||||
cryptographic drivers; thus allowing of userspace applications to take advantage \
|
||||
of hardware accelerators. Cryptodev-linux is implemented as a standalone \
|
||||
module that requires no dependencies other than a stock linux kernel. Its \
|
||||
API is compatible with OpenBSD's cryptodev userspace API (/dev/crypto)."
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "git://github.com/cryptodev-linux/cryptodev-linux;branch=master;protocol=https \
|
||||
"
|
||||
SRCREV = "795f5fda1485d447cdbad342e8304be317d4f7e8"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
From 66d85d3f26e21cf7c38b27de0dcc42376f5d853e Mon Sep 17 00:00:00 2001
|
||||
From: Denys Dmytriyenko <denys@ti.com>
|
||||
Date: Sun, 6 Apr 2014 19:51:39 -0400
|
||||
Subject: [PATCH] Disable installing header file provided by another package
|
||||
|
||||
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
|
||||
|
||||
Upstream-Status: Inappropriate [ OE specific ]
|
||||
|
||||
---
|
||||
Makefile | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d83aee6..c8d8ae5 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -36,7 +36,6 @@ install: modules_install
|
||||
|
||||
modules_install:
|
||||
$(MAKE) $(KERNEL_MAKE_OPTS) modules_install
|
||||
- install -m 644 -D crypto/cryptodev.h $(DESTDIR)/$(includedir)/crypto/cryptodev.h
|
||||
|
||||
install_tests: tests
|
||||
$(MAKE) -C tests install DESTDIR=$(PREFIX)
|
||||
@@ -0,0 +1,25 @@
|
||||
From 47438e53e1156db0916c0f4683a24fe4d82152f2 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Fri, 10 Sep 2021 10:44:42 +0200
|
||||
Subject: [PATCH] tests/Makefile: do not use -Werror
|
||||
|
||||
Otherwise, openssl 3 deprecation warnings become errors.
|
||||
Reported at https://github.com/cryptodev-linux/cryptodev-linux/issues/67
|
||||
|
||||
Upstream-Status: Inappropriate [upstream needs to update the code]
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
|
||||
---
|
||||
tests/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/Makefile b/tests/Makefile
|
||||
index 2fb7a9a..e94f80e 100644
|
||||
--- a/tests/Makefile
|
||||
+++ b/tests/Makefile
|
||||
@@ -1,4 +1,4 @@
|
||||
-CFLAGS += -I.. $(CRYPTODEV_CFLAGS) -Wall -Werror
|
||||
+CFLAGS += -I.. $(CRYPTODEV_CFLAGS) -Wall
|
||||
|
||||
comp_progs := cipher_comp hash_comp hmac_comp
|
||||
|
||||
Reference in New Issue
Block a user