initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From 455c4938f5822c017c7ff79dd2dca638b6410923 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 15 Nov 2020 18:05:48 -0800
|
||||
Subject: [PATCH] Disable use of __NR_io_getevents when not defined
|
||||
|
||||
Architectures like riscv32 do not define this syscall, therefore return
|
||||
ENOSYS on such architectures
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Stephan Mueller <smueller@chronox.de>
|
||||
[Retrieved from:
|
||||
https://github.com/smuellerDD/libkcapi/commit/455c4938f5822c017c7ff79dd2dca638b6410923]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
lib/internal.h | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/internal.h b/lib/internal.h
|
||||
index 1237827..f765461 100644
|
||||
--- a/lib/internal.h
|
||||
+++ b/lib/internal.h
|
||||
@@ -325,10 +325,17 @@ static inline int io_submit(aio_context_t ctx, long n, struct iocb **iocb)
|
||||
return syscall(__NR_io_submit, ctx, n, iocb);
|
||||
}
|
||||
|
||||
-static inline int io_getevents(aio_context_t ctx, long min, long max,
|
||||
- struct io_event *events, struct timespec *timeout)
|
||||
+static inline int io_getevents(__attribute__((unused)) aio_context_t ctx,
|
||||
+ __attribute__((unused)) long min,
|
||||
+ __attribute__((unused)) long max,
|
||||
+ __attribute__((unused)) struct io_event *events,
|
||||
+ __attribute__((unused)) struct timespec *timeout)
|
||||
{
|
||||
+#ifdef __NR_io_getevents
|
||||
return syscall(__NR_io_getevents, ctx, min, max, events, timeout);
|
||||
+#else
|
||||
+ return -ENOSYS;
|
||||
+#endif
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
@@ -0,0 +1,31 @@
|
||||
config BR2_PACKAGE_LIBKCAPI
|
||||
bool "libkcapi"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
help
|
||||
Linux Kernel Crypto API userspace interface library
|
||||
|
||||
http://www.chronox.de/libkcapi.html
|
||||
|
||||
if BR2_PACKAGE_LIBKCAPI
|
||||
|
||||
config BR2_PACKAGE_LIBKCAPI_ENCAPP
|
||||
bool "build enc application"
|
||||
|
||||
config BR2_PACKAGE_LIBKCAPI_HASHER
|
||||
bool "build hasher application"
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
|
||||
comment "hasher application needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_LIBKCAPI_RNGAPP
|
||||
bool "build rng read application"
|
||||
|
||||
config BR2_PACKAGE_LIBKCAPI_SPEED
|
||||
bool "build speed-test program"
|
||||
|
||||
config BR2_PACKAGE_LIBKCAPI_TEST
|
||||
bool "build test program"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 8a08dcbb4d05ede4357cdc9d61c7f2a7f2cd96b7ce2eb41b28e45b2e378267ad libkcapi-1.1.5.tar.xz
|
||||
sha256 c6b8402a68999b0f84560ab43cdf60f9ff33c4a9a8ced6a40db9d3b787ba5b4a COPYING
|
||||
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 COPYING.gplv2
|
||||
sha256 13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239 COPYING.bsd
|
||||
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# libkcapi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBKCAPI_VERSION = 1.1.5
|
||||
LIBKCAPI_SOURCE = libkcapi-$(LIBKCAPI_VERSION).tar.xz
|
||||
LIBKCAPI_SITE = http://www.chronox.de/libkcapi
|
||||
LIBKCAPI_AUTORECONF = YES
|
||||
LIBKCAPI_INSTALL_STAGING = YES
|
||||
LIBKCAPI_LICENSE = BSD-3-Clause (library), BSD-3-Clause or GPL-2.0 (programs)
|
||||
LIBKCAPI_LICENSE_FILES = COPYING COPYING.gplv2 COPYING.bsd
|
||||
LIBKCAPI_CONF_ENV = \
|
||||
ac_cv_path_DB2PDF="" \
|
||||
ac_cv_path_DB2PS="" \
|
||||
ac_cv_path_XMLTO=""
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKCAPI_ENCAPP),y)
|
||||
LIBKCAPI_CONF_OPTS += --enable-kcapi-encapp
|
||||
else
|
||||
LIBKCAPI_CONF_OPTS += --disable-kcapi-encapp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKCAPI_HASHER),y)
|
||||
LIBKCAPI_CONF_OPTS += --enable-kcapi-hasher
|
||||
else
|
||||
LIBKCAPI_CONF_OPTS += --disable-kcapi-hasher
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKCAPI_RNGAPP),y)
|
||||
LIBKCAPI_CONF_OPTS += --enable-kcapi-rngapp
|
||||
else
|
||||
LIBKCAPI_CONF_OPTS += --disable-kcapi-rngapp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKCAPI_SPEED),y)
|
||||
LIBKCAPI_CONF_OPTS += --enable-kcapi-speed
|
||||
else
|
||||
LIBKCAPI_CONF_OPTS += --disable-kcapi-speed
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKCAPI_TEST),y)
|
||||
LIBKCAPI_CONF_OPTS += --enable-kcapi-test
|
||||
else
|
||||
LIBKCAPI_CONF_OPTS += --disable-kcapi-test
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user