[oe] [meta-oe][PATCH 2/2] libgpiod: add packageconfig for python bindings
Martin Hundebøll
mnhu at prevas.dk
Wed May 23 18:23:31 UTC 2018
Signed-off-by: Martin Hundebøll <mnhu at prevas.dk>
---
meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb
index c2e11ad38..1bda8bc3a 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.1.bb
@@ -4,3 +4,11 @@ DEPENDS += "autoconf-archive-native"
SRC_URI[md5sum] = "80237a047a9d653a14c5d71e5ce9d641"
SRC_URI[sha256sum] = "9758466468a7ef3f5e30c182c1303abef6241e665cda4d82a64328a7474838c1"
+
+PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3,python3-core"
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}
+
+PACKAGES =+ "${PN}-python"
+FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
+RRECOMMENDS_PYTHON = "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-python', '',d)}"
+RRECOMMENDS_${PN} += "${RRECOMMENDS_PYTHON}"
--
2.17.0
More information about the Openembedded-devel
mailing list