From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] libiio: Optionally install test binaries
Date: Wed, 16 Jan 2019 23:18:05 +0100 [thread overview]
Message-ID: <20190116221805.GA5415@lenoch> (raw)
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
Note: replaces "libiio: Add options for installing test binaries"
rules/libiio.in | 15 +++++++++++++--
rules/libiio.make | 12 +++++++++---
2 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/rules/libiio.in b/rules/libiio.in
index c9e94c866..93ef298ec 100644
--- a/rules/libiio.in
+++ b/rules/libiio.in
@@ -1,9 +1,20 @@
## SECTION=system_libraries
-config LIBIIO
+menuconfig LIBIIO
tristate
- prompt "libiio"
+ prompt "libiio "
select HOST_CMAKE
help
A cross platform library for interfacing with local and
remote Linux IIO devices.
+
+if LIBIIO
+
+config LIBIIO_TEST_TOOLS
+ bool "install test tools"
+ help
+ Install IIO test tools: iio_adi_xflow_check, iio_attr,
+ iio_genxml, iio_info, iio_readdev, iio_reg and
+ iio_writedev.
+
+endif
diff --git a/rules/libiio.make b/rules/libiio.make
index c997ed4bd..997997fba 100644
--- a/rules/libiio.make
+++ b/rules/libiio.make
@@ -32,7 +32,7 @@ LIBIIO_LICENSE := LGPL-2.1-only
LIBIIO_CONF_TOOL := cmake
LIBIIO_CONF_OPT := \
$(CROSS_CMAKE_USR) \
- -DENABLE_IPV6=$(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,ON,OFF) \
+ -DENABLE_IPV6=$(call ptx/onoff, PTXCONF_GLOBAL_IPV6) \
-DWITH_DOC=OFF \
-DWITH_IIOD=OFF \
-DWITH_LOCAL_BACKEND=ON \
@@ -44,7 +44,7 @@ LIBIIO_CONF_OPT := \
-DWITH_MATLAB_BINDINGS_API=OFF \
-DPYTHON_BINDINGS=OFF \
-DCSHARP_BINDINGS=OFF \
- -DWITH_TESTS=OFF
+ -DWITH_TESTS=$(call ptx/onoff, PTXCONF_LIBIIO_TEST_TOOLS)
# ----------------------------------------------------------------------------
# Target-Install
@@ -57,10 +57,16 @@ $(STATEDIR)/libiio.targetinstall:
@$(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_fixup, libiio, DESCRIPTION, \
+ "A library for interfacing with Linux IIO devices")
@$(call install_lib, libiio, 0, 0, 0644, libiio)
+ifdef PTXCONF_LIBIIO_TEST_TOOLS
+ @$(foreach testprog, adi_xflow_check attr genxml info readdev reg writedev, \
+ $(call install_copy, libiio, 0, 0, 0755, -, \
+ /usr/bin/iio_$(testprog))$(ptx/nl))
+endif
@$(call install_finish, libiio)
@$(call touch)
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2019-01-16 22:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190116221805.GA5415@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