* [Buildroot] [PATCH 1/1] libuio: new package
@ 2016-06-09 12:22 Joris Lijssens
2016-06-09 14:07 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Joris Lijssens @ 2016-06-09 12:22 UTC (permalink / raw)
To: buildroot
Signed-off-by: Joris Lijssens <joris.lijssens@gmail.com>
---
package/Config.in | 1 +
package/libuio/Config.in | 8 ++++++++
package/libuio/libuio.hash | 2 ++
package/libuio/libuio.mk | 27 +++++++++++++++++++++++++++
4 files changed, 38 insertions(+)
create mode 100644 package/libuio/Config.in
create mode 100644 package/libuio/libuio.hash
create mode 100644 package/libuio/libuio.mk
diff --git a/package/Config.in b/package/Config.in
index 0cb2e7e..a67930a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -403,6 +403,7 @@ endif
source "package/kbd/Config.in"
source "package/lcdproc/Config.in"
source "package/libump/Config.in"
+ source "package/libuio/Config.in"
source "package/linux-backports/Config.in"
source "package/lirc-tools/Config.in"
source "package/lm-sensors/Config.in"
diff --git a/package/libuio/Config.in b/package/libuio/Config.in
new file mode 100644
index 0000000..97be1e3
--- /dev/null
+++ b/package/libuio/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBUIO
+ bool "libuio"
+ select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
+ help
+ libuio is a light-weight C programming library to handle UIO
+ (Userspace I/O) device discovery and binding task.
+
+ http://github.com/Linutronix/libuio
diff --git a/package/libuio/libuio.hash b/package/libuio/libuio.hash
new file mode 100644
index 0000000..6afe7de
--- /dev/null
+++ b/package/libuio/libuio.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 57f9617f75d20f7912b270568cffdf098fe9d0c1ca690c002e949be8424aa4e6 libuio-940861de278cb794bf9d775b76a4d1d4f9108607.tar.gz
diff --git a/package/libuio/libuio.mk b/package/libuio/libuio.mk
new file mode 100644
index 0000000..ead6e69
--- /dev/null
+++ b/package/libuio/libuio.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# libuio
+#
+################################################################################
+
+LIBUIO_VERSION = 940861de278cb794bf9d775b76a4d1d4f9108607# v0.2.7
+LIBUIO_SITE = $(call github,Linutronix,libuio,$(LIBUIO_VERSION))
+LIBUIO_LICENSE = LGPLv2.1
+LIBUIO_LICENSE_FILES = COPYING
+LIBUIO_CONF_OPTS = --with-glib=no
+LIBUIO_INSTALL_STAGING = YES
+LIBUIO_DEPENDENCIES = \
+ host-pkgconf \
+
+ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
+LIBUIO_DEPENDENCIES += argp-standalone
+LIBUIO_CONF_ENV += LIBS="-largp"
+endif
+
+define LIBUIO_RUN_AUTOGEN
+ cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
+endef
+
+LIBUIO_PRE_CONFIGURE_HOOKS += LIBUIO_RUN_AUTOGEN
+
+$(eval $(autotools-package))
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] libuio: new package
2016-06-09 12:22 [Buildroot] [PATCH 1/1] libuio: new package Joris Lijssens
@ 2016-06-09 14:07 ` Thomas Petazzoni
[not found] ` <CACt6We1xyB0b7H8ro8jU=MVKB3XegHRVS+afY6=1pBPho5j4XA@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2016-06-09 14:07 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 9 Jun 2016 14:22:51 +0200, Joris Lijssens wrote:
> diff --git a/package/libuio/libuio.mk b/package/libuio/libuio.mk
> new file mode 100644
> index 0000000..ead6e69
> --- /dev/null
> +++ b/package/libuio/libuio.mk
> @@ -0,0 +1,27 @@
> +################################################################################
> +#
> +# libuio
> +#
> +################################################################################
> +
> +LIBUIO_VERSION = 940861de278cb794bf9d775b76a4d1d4f9108607# v0.2.7
> +LIBUIO_SITE = $(call github,Linutronix,libuio,$(LIBUIO_VERSION))
> +LIBUIO_LICENSE = LGPLv2.1
> +LIBUIO_LICENSE_FILES = COPYING
> +LIBUIO_CONF_OPTS = --with-glib=no
> +LIBUIO_INSTALL_STAGING = YES
> +LIBUIO_DEPENDENCIES = \
> + host-pkgconf \
LIBUIO_DEPENDENCIES = host-pkgconf
is sufficient (i.e on one line).
> +ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
> +LIBUIO_DEPENDENCIES += argp-standalone
> +LIBUIO_CONF_ENV += LIBS="-largp"
> +endif
> +
> +define LIBUIO_RUN_AUTOGEN
> + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
> +endef
This cannot work if you don't depend on host-automake, host-libtool and
host-autoconf. However, have you tried instead:
LIBUIO_AUTORECONF = YES
And if yes, why aren't you using this?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-14 9:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-09 12:22 [Buildroot] [PATCH 1/1] libuio: new package Joris Lijssens
2016-06-09 14:07 ` Thomas Petazzoni
[not found] ` <CACt6We1xyB0b7H8ro8jU=MVKB3XegHRVS+afY6=1pBPho5j4XA@mail.gmail.com>
[not found] ` <20160609163238.44d73ab6@free-electrons.com>
[not found] ` <CACt6We1Rqmqcu7m3YStBDidYtSbB-77d==mAXsAcnxaP+Zu9fQ@mail.gmail.com>
[not found] ` <20160609173225.019b5431@free-electrons.com>
[not found] ` <CACt6We3O=VNQsq7=E6JQXOdXLY1PrkXFx5iaVkP1NuUgpofNNA@mail.gmail.com>
[not found] ` <20160613112532.42758d1d@free-electrons.com>
[not found] ` <CACt6We2KKx7nO9Tj7kVQn4SQkLfp1+=YWuWi3AXAR8YZgwe7UQ@mail.gmail.com>
[not found] ` <20160613115307.17d99fd7@free-electrons.com>
2016-06-13 10:21 ` Joris Lijssens
2016-06-13 10:39 ` Thomas Petazzoni
2016-06-14 9:23 ` Joris Lijssens
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.