summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2020-11-05 11:45:27 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-11-12 08:12:02 +0100
commitea3e4e5d5bfb71ae4513054ec1327a3f9184984e (patch)
tree3d2a0f4b472d70356f06966e48d7815cb764a7ef
parent04617e440e0d5cf281b517de6918eac18bfc3013 (diff)
downloadptxdist-ea3e4e5d5bfb71ae4513054ec1327a3f9184984e.tar.gz
ptxdist-ea3e4e5d5bfb71ae4513054ec1327a3f9184984e.tar.xz
liburing: add new rule
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 <s.trumtrar@pengutronix.de> Message-Id: <20201105104527.15630-1-s.trumtrar@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/liburing.in9
-rw-r--r--rules/liburing.make53
2 files changed, 62 insertions, 0 deletions
diff --git a/rules/liburing.in b/rules/liburing.in
new file mode 100644
index 000000000..b96282a0d
--- /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 000000000..5bb367f74
--- /dev/null
+++ b/rules/liburing.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Steffen Trumtrar <s.trumtrar@pengutronix.de>
+#
+# 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 <s.trumtrar@pengutronix.de>")
+ @$(call install_fixup, liburing,DESCRIPTION,missing)
+
+ @$(call install_lib, liburing, 0, 0, 0644, liburing)
+
+ @$(call install_finish, liburing)
+
+ @$(call touch)
+
+# vim: syntax=make