* [ptxdist] [PATCH] libiio: new package
@ 2019-01-09 13:15 Ladislav Michl
2019-01-14 7:49 ` Ladislav Michl
0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2019-01-09 13:15 UTC (permalink / raw)
To: ptxdist
Only local backend is supported for now.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
rules/libiio.in | 9 +++++++
rules/libiio.make | 68 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 77 insertions(+)
create mode 100644 rules/libiio.in
create mode 100644 rules/libiio.make
diff --git a/rules/libiio.in b/rules/libiio.in
new file mode 100644
index 000000000..c9e94c866
--- /dev/null
+++ b/rules/libiio.in
@@ -0,0 +1,9 @@
+## SECTION=system_libraries
+
+config LIBIIO
+ tristate
+ prompt "libiio"
+ select HOST_CMAKE
+ help
+ A cross platform library for interfacing with local and
+ remote Linux IIO devices.
diff --git a/rules/libiio.make b/rules/libiio.make
new file mode 100644
index 000000000..8a803ac9b
--- /dev/null
+++ b/rules/libiio.make
@@ -0,0 +1,68 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Ladislav Michl <ladis@linux-mips.org>
+#
+# 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_LIBIIO) += libiio
+
+#
+# Paths and names
+#
+LIBIIO_VERSION := 0.16
+LIBIIO_MD5 := 2f2b630cec928cf691f40f720625d40d
+LIBIIO := libiio-$(LIBIIO_VERSION)
+LIBIIO_SUFFIX := tar.gz
+LIBIIO_URL := https://github.com/analogdevicesinc/libiio/archive/v$(LIBIIO_VERSION).$(LIBIIO_SUFFIX)
+LIBIIO_SOURCE := $(SRCDIR)/$(LIBIIO).$(LIBIIO_SUFFIX)
+LIBIIO_DIR := $(BUILDDIR)/$(LIBIIO)
+LIBIIO_LICENSE := LGPL-2.1-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBIIO_CONF_TOOL := cmake
+LIBIIO_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -DENABLE_IPV6=$(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,ON,OFF) \
+ -DWITH_DOC=OFF \
+ -DWITH_IIOD=OFF \
+ -DWITH_LOCAL_BACKEND=ON \
+ -DWITH_LOCAL_CONFIG=OFF \
+ -DWITH_XML_BACKEND=OFF \
+ -DWITH_USB_BACKEND=OFF \
+ -DWITH_SERIAL_BACKEND=OFF \
+ -DWITH_NETWORK_BACKEND=OFF \
+ -DWITH_MATLAB_BINDINGS_API=OFF \
+ -DPYTHON_BINDINGS=OFF \
+ -DCSHARP_BINDINGS=OFF \
+ -DWITH_TESTS=OFF
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libiio.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libiio)
+ @$(call install_fixup, libiio, PRIORITY, optional)
+ @$(call install_fixup, libiio, SECTION, base)
+ @$(call install_fixup, libiio, AUTHOR, "Ladislav Michl <ladis@linux-mips.org>")
+ @$(call install_fixup, libiio, DESCRIPTION, missing)
+
+ @$(call install_lib, libiio, 0, 0, 0644, libiio)
+
+ @$(call install_finish, libiio)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] libiio: new package
2019-01-09 13:15 [ptxdist] [PATCH] libiio: new package Ladislav Michl
@ 2019-01-14 7:49 ` Ladislav Michl
0 siblings, 0 replies; 2+ messages in thread
From: Ladislav Michl @ 2019-01-14 7:49 UTC (permalink / raw)
To: ptxdist
On Wed, Jan 09, 2019 at 02:15:02PM +0100, Ladislav Michl wrote:
> Only local backend is supported for now.
Please ignore, there's v0.17 meanwhile and I also added options to install
iio_info, etc.
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> ---
> rules/libiio.in | 9 +++++++
> rules/libiio.make | 68 +++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 77 insertions(+)
> create mode 100644 rules/libiio.in
> create mode 100644 rules/libiio.make
>
> diff --git a/rules/libiio.in b/rules/libiio.in
> new file mode 100644
> index 000000000..c9e94c866
> --- /dev/null
> +++ b/rules/libiio.in
> @@ -0,0 +1,9 @@
> +## SECTION=system_libraries
> +
> +config LIBIIO
> + tristate
> + prompt "libiio"
> + select HOST_CMAKE
> + help
> + A cross platform library for interfacing with local and
> + remote Linux IIO devices.
> diff --git a/rules/libiio.make b/rules/libiio.make
> new file mode 100644
> index 000000000..8a803ac9b
> --- /dev/null
> +++ b/rules/libiio.make
> @@ -0,0 +1,68 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2019 by Ladislav Michl <ladis@linux-mips.org>
> +#
> +# 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_LIBIIO) += libiio
> +
> +#
> +# Paths and names
> +#
> +LIBIIO_VERSION := 0.16
> +LIBIIO_MD5 := 2f2b630cec928cf691f40f720625d40d
> +LIBIIO := libiio-$(LIBIIO_VERSION)
> +LIBIIO_SUFFIX := tar.gz
> +LIBIIO_URL := https://github.com/analogdevicesinc/libiio/archive/v$(LIBIIO_VERSION).$(LIBIIO_SUFFIX)
> +LIBIIO_SOURCE := $(SRCDIR)/$(LIBIIO).$(LIBIIO_SUFFIX)
> +LIBIIO_DIR := $(BUILDDIR)/$(LIBIIO)
> +LIBIIO_LICENSE := LGPL-2.1-only
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +LIBIIO_CONF_TOOL := cmake
> +LIBIIO_CONF_OPT := \
> + $(CROSS_CMAKE_USR) \
> + -DENABLE_IPV6=$(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,ON,OFF) \
> + -DWITH_DOC=OFF \
> + -DWITH_IIOD=OFF \
> + -DWITH_LOCAL_BACKEND=ON \
> + -DWITH_LOCAL_CONFIG=OFF \
> + -DWITH_XML_BACKEND=OFF \
> + -DWITH_USB_BACKEND=OFF \
> + -DWITH_SERIAL_BACKEND=OFF \
> + -DWITH_NETWORK_BACKEND=OFF \
> + -DWITH_MATLAB_BINDINGS_API=OFF \
> + -DPYTHON_BINDINGS=OFF \
> + -DCSHARP_BINDINGS=OFF \
> + -DWITH_TESTS=OFF
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libiio.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libiio)
> + @$(call install_fixup, libiio, PRIORITY, optional)
> + @$(call install_fixup, libiio, SECTION, base)
> + @$(call install_fixup, libiio, AUTHOR, "Ladislav Michl <ladis@linux-mips.org>")
> + @$(call install_fixup, libiio, DESCRIPTION, missing)
> +
> + @$(call install_lib, libiio, 0, 0, 0644, libiio)
> +
> + @$(call install_finish, libiio)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.20.1
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-14 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09 13:15 [ptxdist] [PATCH] libiio: new package Ladislav Michl
2019-01-14 7:49 ` Ladislav Michl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox