* [Buildroot] [PATCH] libsoc: add Python bindings support
@ 2016-06-24 12:35 yegorslists at googlemail.com
2016-06-25 13:36 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: yegorslists at googlemail.com @ 2016-06-24 12:35 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/libsoc/libsoc.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/package/libsoc/libsoc.mk b/package/libsoc/libsoc.mk
index 878616b..b6200dc 100644
--- a/package/libsoc/libsoc.mk
+++ b/package/libsoc/libsoc.mk
@@ -11,4 +11,16 @@ LIBSOC_LICENSE_FILES = LICENCE
LIBSOC_AUTORECONF = YES
LIBSOC_INSTALL_STAGING = YES
+# Install Python 2 bindings
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+LIBSOC_DEPENDENCIES += python
+LIBSOC_CONF_OPTS += --enable-python=2
+endif
+
+# Install Python 3 bindings
+ifeq ($(BR2_PACKAGE_PYTHON3),y)
+LIBSOC_DEPENDENCIES += python3
+LIBSOC_CONF_OPTS += --enable-python=3
+endif
+
$(eval $(autotools-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libsoc: add Python bindings support
2016-06-24 12:35 [Buildroot] [PATCH] libsoc: add Python bindings support yegorslists at googlemail.com
@ 2016-06-25 13:36 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-06-25 13:36 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 24 Jun 2016 14:35:10 +0200, yegorslists at googlemail.com wrote:
> +# Install Python 2 bindings
> +ifeq ($(BR2_PACKAGE_PYTHON),y)
> +LIBSOC_DEPENDENCIES += python
> +LIBSOC_CONF_OPTS += --enable-python=2
> +endif
> +
> +# Install Python 3 bindings
> +ifeq ($(BR2_PACKAGE_PYTHON3),y)
I've grouped this condition with the previous one, using an "else
ifeq", since python/python3 are mutually exclusive.
> +LIBSOC_DEPENDENCIES += python3
> +LIBSOC_CONF_OPTS += --enable-python=3
> +endif
I've added:
else
LIBSOC_CONF_OPTS += --disable-python
endif
And applied. Let me know if there is any issue with the modifications.
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:[~2016-06-25 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 12:35 [Buildroot] [PATCH] libsoc: add Python bindings support yegorslists at googlemail.com
2016-06-25 13:36 ` 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.