summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/liburing/liburing_2.9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/liburing/liburing_2.9.bb')
-rw-r--r--meta-oe/recipes-support/liburing/liburing_2.9.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/liburing/liburing_2.9.bb b/meta-oe/recipes-support/liburing/liburing_2.9.bb
new file mode 100644
index 0000000000..a645a8e4c4
--- /dev/null
+++ b/meta-oe/recipes-support/liburing/liburing_2.9.bb
@@ -0,0 +1,35 @@
1SUMMARY = "This is the io_uring library, liburing."
2DESCRIPTION = "liburing provides helpers to setup and teardown io_uring \
3instances, and also a simplified interface for applications that don't need \
4(or want) to deal with the full kernel side implementation."
5HOMEPAGE = "https://github.com/axboe/liburing"
6BUGTRACKER = "https://github.com/axboe/liburing/issues"
7SECTION = "libs"
8
9LICENSE = "LGPL-2.1-only | MIT"
10LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af"
11
12SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https \
13 file://0001-test-Including-missing-string.h-for-memcpy.patch"
14SRCREV = "08468cc3830185c75f9e7edefd88aa01e5c2f8ab"
15
16
17DEPENDS:append:libc-musl = " libucontext"
18XCFLAGS = "-pthread"
19XCFLAGS:append:libc-musl = " -lucontext"
20
21USELIBC = ""
22# clang-18+ on RV64 emits memset for arch/riscv64/syscall.h provided __do_syscall4 macro
23# this does not happen for gcc or older clang, so link with libc since we need memset API
24# -fno-builtin-memset does not help
25USELIBC:riscv64:toolchain-clang = "--use-libc"
26USELIBC:riscv32 = "--use-libc"
27EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'"
28do_configure() {
29 ${S}/configure --prefix=${prefix} --libdir=${libdir} --libdevdir=${libdir} --mandir=${mandir} --datadir=${datadir} --includedir=${includedir} ${USELIBC}
30}
31do_install () {
32 oe_runmake install DESTDIR=${D}
33}
34
35BBCLASSEXTEND = "native nativesdk"