Skip to contentSkip to conversation

libsoc: add Python bindings support

PATCH New yegorslists at googlemail.com 2 participants 2 messages Jun 24, 2016 – Jun 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsoc: add Python bindings support

From: Yegor Yefremov <[email protected]>

---
 package/libsoc/libsoc.mk | 12 ++++++++++++
 1 file changed, 12 insertions(+)
package/libsoc/libsoc.mk +12 -0
index 878616b..b6200dc 100644
@@ -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))
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 libsoc: add Python bindings support

Hello,

package/libsoc/libsoc.mk LIBSOC_LICENSE_FILES = LICENCE · line 21

Quoted 8 lines · yegorslists at googlemail.com
package/libsoc/libsoc.mk +8 -0
+# 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.

package/libsoc/libsoc.mk LIBSOC_LICENSE_FILES = LICENCE · line 24

Quoted 3 lines
package/libsoc/libsoc.mk +3 -0
+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

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