[oe-commits] [meta-openembedded] 14/31: libiio: Conditionally inherit distutils3-base
git at git.openembedded.org
git at git.openembedded.org
Tue Oct 29 20:53:02 UTC 2019
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit 1e865b9077a16033f2ba503970c681e6257cbbf9
Author: Martin Siegumfeldt <mns at gomspace.com>
AuthorDate: Tue Oct 29 11:20:00 2019 +0100
libiio: Conditionally inherit distutils3-base
* inherit only when libiio-python3 is build.
* also add PACKAGECONFIG variant that allows python bindings to be
enabled and disabled. It adheres to the current CMake logic and
defaults to an 'out-out' approach.
Signed-off-by: Martin Siegumfeldt <mns at gomspace.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-oe/recipes-support/libiio/libiio_git.bb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-support/libiio/libiio_git.bb b/meta-oe/recipes-support/libiio/libiio_git.bb
index e6e0eae..ec3a39d 100644
--- a/meta-oe/recipes-support/libiio/libiio_git.bb
+++ b/meta-oe/recipes-support/libiio/libiio_git.bb
@@ -12,7 +12,7 @@ SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https"
S = "${WORKDIR}/git"
-inherit cmake python3native systemd distutils3-base
+inherit cmake python3native systemd
DEPENDS = " \
flex-native bison-native libaio \
@@ -25,10 +25,13 @@ 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] = "-DPYTHON_BINDINGS=ON,-DPYTHON_BINDINGS=OFF"
+
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'distutils3-base', '', d)}
PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-${PYTHON_PN}"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list