Skip to contentSkip to conversation

v2 liburing: add v0.7

PATCH New Khem Raj 1 participant 1 message Aug 25, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 v2 liburing: add v0.7

From: Richard Leitner <[email protected]>

Add initial support for liburing v0.7.
Fix build with musl by linking and depending on libucontext

---
v2: Fix build with musl C library

 .../recipes-support/liburing/liburing_0.7.bb  | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-support/liburing/liburing_0.7.bb
meta-oe/recipes-support/liburing/liburing_0.7.bb new file +23 -0
new file mode 100644
index 0000000000..c66021156c
@@ -0,0 +1,23 @@
+SUMMARY = "This is the io_uring library, liburing."
+DESCRIPTION = "liburing provides helpers to setup and teardown io_uring \
+instances, and also a simplified interface for applications that don't need \
+(or want) to deal with the full kernel side implementation."
+HOMEPAGE = "https://github.com/axboe/liburing"
+BUGTRACKER = "https://github.com/axboe/liburing/issues"
+SECTION = "libs"
+
+LICENSE = "LGPLv2.1 | MIT"
+LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=d51b5805e2a675685e6a66ca50904cf9"
+
+SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https"
+SRCREV = "45f0735219a615ae848033c47c7e2d85d101d43e"
+S = "${WORKDIR}/git"
+
+DEPENDS_append_libc-musl = " libucontext"
+XCFLAGS_append_libc-musl = " -lucontext"
+
+EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'"
+
+do_install () {
+    oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
+}
Signature · 1 line
2.28.0