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 | |
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>
-rw-r--r-- | patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch | 30 | ||||
-rw-r--r-- | patches/libaio-0.3.110/series | 4 | ||||
-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 |
6 files changed, 128 insertions, 0 deletions
diff --git a/patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch b/patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch new file mode 100644 index 000000000..c0fd32f2b --- /dev/null +++ b/patches/libaio-0.3.110/0001-make-the-package-DESTDIR-aware.patch @@ -0,0 +1,30 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Thu, 26 May 2016 10:25:21 +0200 +Subject: [PATCH] make the package DESTDIR aware + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + src/Makefile | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index eadb336b47e3..8a037c865c29 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -53,11 +53,11 @@ $(libname): $(libaio_sobjs) libaio.map + $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS) + + install: $(all_targets) +- install -D -m 644 libaio.h $(includedir)/libaio.h +- install -D -m 644 libaio.a $(libdir)/libaio.a +- install -D -m 755 $(libname) $(libdir)/$(libname) +- ln -sf $(libname) $(libdir)/$(soname) +- ln -sf $(libname) $(libdir)/libaio.so ++ install -D -m 644 libaio.h $(DESTDIR)$(includedir)/libaio.h ++ install -D -m 644 libaio.a $(DESTDIR)$(libdir)/libaio.a ++ install -D -m 755 $(libname) $(DESTDIR)$(libdir)/$(libname) ++ ln -sf $(libname) $(DESTDIR)$(libdir)/$(soname) ++ ln -sf $(libname) $(DESTDIR)$(libdir)/libaio.so + + $(libaio_objs): libaio.h + diff --git a/patches/libaio-0.3.110/series b/patches/libaio-0.3.110/series new file mode 100644 index 000000000..1c5e0b993 --- /dev/null +++ b/patches/libaio-0.3.110/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-make-the-package-DESTDIR-aware.patch +# 2c519bc2ab00d1696f060ce28efb150a - git-ptx-patches magic 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 |