[oe] [PATCH 05/31] openlmi-tools: Only build if the necessary python pieces are available

Mark Hatle mark.hatle at windriver.com
Wed Sep 6 19:23:03 UTC 2017


Since this isn't a python library it doesn't really belong to meta-python.
But I couldn't figure out where else to move it to.

Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
---
 meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb b/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
index b23869d..13e67cb 100644
--- a/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
+++ b/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
@@ -21,3 +21,8 @@ do_compile_prepend() {
 do_install_prepend() {
     cd cli
 }
+
+python() {
+    if 'meta-python' not in d.getVar('BBFILE_COLLECTIONS').split():
+        raise bb.parse.SkipRecipe('Requires meta-python to be present.')
+}
-- 
1.8.3.1




More information about the Openembedded-devel mailing list