mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] libiio: new package
Date: Mon, 14 Jan 2019 08:49:21 +0100	[thread overview]
Message-ID: <20190114074921.GB22515@lenoch> (raw)
In-Reply-To: <20190109131502.GB12402@lenoch>

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

      reply	other threads:[~2019-01-14  7:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-09 13:15 Ladislav Michl
2019-01-14  7:49 ` Ladislav Michl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190114074921.GB22515@lenoch \
    --to=ladis@linux-mips.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox