All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] libsoc: add Python bindings support
@ 2016-06-25 13:35 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2016-06-25 13:35 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=c6ba80ccae02fc8e26f6716480c200ed35efa9d6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
[Thomas: add --disable-python, use 'else ifeq'.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.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..03bef04 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
+# Install Python 3 bindings
+else ifeq ($(BR2_PACKAGE_PYTHON3),y)
+LIBSOC_DEPENDENCIES += python3
+LIBSOC_CONF_OPTS += --enable-python=3
+else
+LIBSOC_CONF_OPTS += --disable-python
+endif
+
 $(eval $(autotools-package))

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-25 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-25 13:35 [Buildroot] [git commit] libsoc: add Python bindings support 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.