Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-oe] [PATCH] libiio: fix build of python bindins
@ 2018-07-19 13:45 Neil Armstrong
  0 siblings, 0 replies; only message in thread
From: Neil Armstrong @ 2018-07-19 13:45 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Neil Armstrong

In the actual form, the python bindings are never built since the
recipe does not depend on python, thus he cmake script does not
detect python and does not build the bindings.

Add a summy PACKAGECONFIG for the python bindings to make it simpler
to disable.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 meta-oe/recipes-support/libiio/libiio_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/libiio/libiio_git.bb b/meta-oe/recipes-support/libiio/libiio_git.bb
index ba380ed..fa6f4c2 100644
--- a/meta-oe/recipes-support/libiio/libiio_git.bb
+++ b/meta-oe/recipes-support/libiio/libiio_git.bb
@@ -24,10 +24,11 @@ EXTRA_OECMAKE = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
 "
 
-PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND"
+PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND PYTHON_BINDINGS"
 
 PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
 PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
+PACKAGECONFIG[PYTHON_BINDINGS] = ",,python"
 
 PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
 
-- 
2.7.4



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

only message in thread, other threads:[~2018-07-19 13:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-19 13:45 [meta-oe] [PATCH] libiio: fix build of python bindins Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox