All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libiio: add binding for python3
@ 2017-10-05 11:33 Béla Becker
  2017-10-07 21:13 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Béla Becker @ 2017-10-05 11:33 UTC (permalink / raw)
  To: buildroot

Python3 support was added to libiio in version 0.10.
This commit adds the option to compile libiio bindings if python3 was
selected instead of python.

Signed-off-by: B?la Becker <bela.becker@pcbdesign.hu>
---
 package/libiio/Config.in | 2 +-
 package/libiio/libiio.mk | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/libiio/Config.in b/package/libiio/Config.in
index 75f6f3a847..baa163126a 100644
--- a/package/libiio/Config.in
+++ b/package/libiio/Config.in
@@ -96,7 +96,7 @@ config BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP
 
 config BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON
 	bool "Install Python bindings"
-	depends on BR2_PACKAGE_PYTHON
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
 	help
 	  Install the Python bindings.
 
diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
index d066ae0314..0b13064085 100644
--- a/package/libiio/libiio.mk
+++ b/package/libiio/libiio.mk
@@ -60,7 +60,11 @@ LIBIIO_DEPENDENCIES += avahi
 endif
 
 ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
+ifeq ($(BR2_PACKAGE_PYTHON),y)
 LIBIIO_DEPENDENCIES += python
+else ifeq ($(BR2_PACKAGE_PYTHON3),y)
+LIBIIO_DEPENDENCIES += python3
+endif
 LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
 else
 LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=OFF
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/libiio: add binding for python3
  2017-10-05 11:33 [Buildroot] [PATCH 1/1] package/libiio: add binding for python3 Béla Becker
@ 2017-10-07 21:13 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-10-07 21:13 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu,  5 Oct 2017 13:33:25 +0200, B?la Becker wrote:
> Python3 support was added to libiio in version 0.10.
> This commit adds the option to compile libiio bindings if python3 was
> selected instead of python.
> 
> Signed-off-by: B?la Becker <bela.becker@pcbdesign.hu>
> ---
>  package/libiio/Config.in | 2 +-
>  package/libiio/libiio.mk | 4 ++++
>  2 files changed, 5 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-07 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 11:33 [Buildroot] [PATCH 1/1] package/libiio: add binding for python3 Béla Becker
2017-10-07 21:13 ` Thomas Petazzoni

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.