Add the liburing package for io_uring instances.

>From the README:

    This is the io_uring library, liburing. 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.

    For more info on io_uring, please see:

    https://kernel.dk/io_uring.pdf

Signed-off-by: Steffen Trumtrar <[email protected]>
---
 rules/liburing.in   |  9 ++++++++
 rules/liburing.make | 53 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/liburing.in
 create mode 100644 rules/liburing.make

diff --git a/rules/liburing.in b/rules/liburing.in
new file mode 100644
index 000000000000..b96282a0d07b
--- /dev/null
+++ b/rules/liburing.in
@@ -0,0 +1,9 @@
+## SECTION=system_libraries
+
+config LIBURING
+       tristate
+       prompt "liburing"
+       help
+         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.
diff --git a/rules/liburing.make b/rules/liburing.make
new file mode 100644
index 000000000000..5bb367f749ab
--- /dev/null
+++ b/rules/liburing.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Steffen Trumtrar <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBURING) += liburing
+
+#
+# Paths and names
+#
+LIBURING_VERSION       := 0.7
+LIBURING_MD5           := 5a045dbf48a7a3fac228d92a9a049424
+LIBURING               := liburing-$(LIBURING_VERSION)
+LIBURING_SUFFIX                := tar.gz
+LIBURING_URL           := 
https://github.com/axboe/liburing/archive/$(LIBURING).$(LIBURING_SUFFIX)
+LIBURING_SOURCE                := $(SRCDIR)/$(LIBURING).$(LIBURING_SUFFIX)
+LIBURING_DIR           := $(BUILDDIR)/$(LIBURING)
+LIBURING_LICENSE       := MIT
+LIBURIGN_LICENSE_FILES := file://LICENSE;md5=f7c2200d2f904868b214103d0cbab6a9
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBURING_CONF_TOOL     := NO
+LIBURING_MAKE_ENV      := $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/liburing.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, liburing)
+       @$(call install_fixup, liburing,PRIORITY,optional)
+       @$(call install_fixup, liburing,SECTION,base)
+       @$(call install_fixup, liburing,AUTHOR,"Steffen Trumtrar 
<[email protected]>")
+       @$(call install_fixup, liburing,DESCRIPTION,missing)
+
+       @$(call install_lib, liburing, 0, 0, 0644, liburing)
+
+       @$(call install_finish, liburing)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to