[yocto] [PATCH] meta-selinux: fix parsing error while selinux not configured

zhanglin zhang.lin16 at zte.com.cn
Mon Jul 8 20:32:50 PDT 2019


Following parsing error will occure while "selinux" not configured
in DISTRO_FEATURES:
ERROR: ParseError in /workspace/zhanglin/CGEL/CGEL6X.new2/CGEL/cge-
l6x_yocto/sources/meta-selinux/recipes-devtools/python/: not a Bit-
Bake file
to fix this, including a empty file: python_default.inc in python_-
%bbappend will work.

Signed-off-by: zhanglin <zhang.lin16 at zte.com.cn>
---
 recipes-devtools/python/python_%.bbappend  | 2 +-
 recipes-devtools/python/python_default.inc | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 100644 recipes-devtools/python/python_default.inc

diff --git a/recipes-devtools/python/python_%.bbappend b/recipes-devtools/python/python_%.bbappend
index 7719d3b..4e69c49 100644
--- a/recipes-devtools/python/python_%.bbappend
+++ b/recipes-devtools/python/python_%.bbappend
@@ -1 +1 @@
-require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '', d)}
+require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '${BPN}_default.inc', d)}
diff --git a/recipes-devtools/python/python_default.inc b/recipes-devtools/python/python_default.inc
new file mode 100644
index 0000000..e69de29
-- 
2.15.2



More information about the yocto mailing list