From ea3e4e5d5bfb71ae4513054ec1327a3f9184984e Mon Sep 17 00:00:00 2001 From: Steffen Trumtrar Date: Thu, 5 Nov 2020 11:45:27 +0100 Subject: 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 Message-Id: <20201105104527.15630-1-s.trumtrar@pengutronix.de> Signed-off-by: Michael Olbrich --- 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 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 +# +# 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 ") + @$(call install_fixup, liburing,DESCRIPTION,missing) + + @$(call install_lib, liburing, 0, 0, 0644, liburing) + + @$(call install_finish, liburing) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3