diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2016-05-24 12:54:30 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-05-26 10:29:11 +0200 |
commit | 6d5ec889cc0be9e3bbdbeaa862089f039a0fea36 (patch) | |
tree | 6c576acb051b307bd8d3e5f3532e80b6457c09cc /rules | |
parent | 03aac15241bab441c7802bbabe659a2305809196 (diff) | |
download | ptxdist-6d5ec889cc0be9e3bbdbeaa862089f039a0fea36.tar.gz ptxdist-6d5ec889cc0be9e3bbdbeaa862089f039a0fea36.tar.xz |
libaio: add new package
This library simplifies the use of asynchronous I/O access the Linux kernel
supports. In order to make use of this feature, the kernel's CONFIG_AIO is
set.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
[mol: fix DESTDIR handling]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/host-libaio.in | 6 | ||||
-rw-r--r-- | rules/host-libaio.make | 24 | ||||
-rw-r--r-- | rules/libaio.in | 7 | ||||
-rw-r--r-- | rules/libaio.make | 57 |
4 files changed, 94 insertions, 0 deletions
diff --git a/rules/host-libaio.in b/rules/host-libaio.in new file mode 100644 index 000000000..bf9657ccd --- /dev/null +++ b/rules/host-libaio.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt + +config HOST_LIBAIO + tristate + help + Requiered host part of some buildsystems diff --git a/rules/host-libaio.make b/rules/host-libaio.make new file mode 100644 index 000000000..6cfe80539 --- /dev/null +++ b/rules/host-libaio.make @@ -0,0 +1,24 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Juergen Borleis <jbe@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_LIBAIO) += host-libaio + +# ---------------------------------------------------------------------------- +# Prepare + Compile +# ---------------------------------------------------------------------------- + +HOST_LIBAIO_CONF_TOOL := NO +HOST_LIBAIO_MAKE_ENV := $(HOST_ENV) +HOST_LIBAIO_MAKEVARS := prefix= + +# vim: syntax=make diff --git a/rules/libaio.in b/rules/libaio.in new file mode 100644 index 000000000..f10149c8b --- /dev/null +++ b/rules/libaio.in @@ -0,0 +1,7 @@ +## SECTION=system_libraries + +config LIBAIO + tristate + prompt "libaio" + help + Library for asynchronous I/O access diff --git a/rules/libaio.make b/rules/libaio.make new file mode 100644 index 000000000..206ae4be2 --- /dev/null +++ b/rules/libaio.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Juergen Borleis <jbe@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBAIO) += libaio + +# +# Paths and names +# +LIBAIO_VERSION := 0.3.110 +LIBAIO_MD5 := 2a35602e43778383e2f4907a4ca39ab8 +LIBAIO := libaio-$(LIBAIO_VERSION) +LIBAIO_SUFFIX := tar.gz +LIBAIO_URL := http://pkgs.fedoraproject.org/repo/pkgs/libaio/libaio-0.3.110.tar.gz/2a35602e43778383e2f4907a4ca39ab8/$(LIBAIO).$(LIBAIO_SUFFIX) +LIBAIO_SOURCE := $(SRCDIR)/$(LIBAIO).$(LIBAIO_SUFFIX) +LIBAIO_DIR := $(BUILDDIR)/$(LIBAIO) +LIBAIO_LICENSE := LGPL-2.1 + +# ---------------------------------------------------------------------------- +# Prepare + Compile +# ---------------------------------------------------------------------------- + +# +# just a Makefile made by a creative Linux kernel hacker... +# +LIBAIO_CONF_TOOL := NO +LIBAIO_MAKE_ENV := $(CROSS_ENV) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libaio.targetinstall: + @$(call targetinfo) + + @$(call install_init, libaio) + @$(call install_fixup, libaio,PRIORITY,optional) + @$(call install_fixup, libaio,SECTION,base) + @$(call install_fixup, libaio,AUTHOR,"Juergen Borleis <jbe@pengutronix.de>") + @$(call install_fixup, libaio,DESCRIPTION,"asynchronous I/O access library") + + @$(call install_lib, libaio, 0, 0, 0644, libaio) + + @$(call install_finish, libaio) + + @$(call touch) + +# vim: syntax=make |