[Buildroot] [git commit] libsoc: add Python bindings support
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sat Jun 25 13:35:44 UTC 2016
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 at googlemail.com>
[Thomas: add --disable-python, use 'else ifeq'.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at 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))
More information about the buildroot
mailing list