diff options
author | Kai Kang <kai.kang@windriver.com> | 2019-03-11 01:52:00 -0400 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2019-03-25 09:43:53 +0100 |
commit | eafe868098f52b061422bffc13fbc582d687d4ed (patch) | |
tree | 8830829eaee8b440bd6d905787d715bf00e0f458 | |
parent | 780038798bb56bcf94c272836afc78ada15c7b89 (diff) | |
download | meta-selinux-eafe868098f52b061422bffc13fbc582d687d4ed.tar.gz |
meson-selinux.bbclass: add for meson build system
Add meson-selinux.bbclass for meson build system. It used
'-Dselinux=true/false' to enable/disable 'selinux' rather than
--enable-selinux or --with-selinux.
Inherit meson-selinux for glib-2.0 to fix configure failure.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | classes/meson-selinux.bbclass | 4 | ||||
-rw-r--r-- | recipes-core/glib-2.0/glib-2.0_%.bbappend | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/classes/meson-selinux.bbclass b/classes/meson-selinux.bbclass new file mode 100644 index 0000000..77a763a --- /dev/null +++ b/classes/meson-selinux.bbclass | |||
@@ -0,0 +1,4 @@ | |||
1 | inherit selinux | ||
2 | |||
3 | PACKAGECONFIG_append = " ${@target_selinux(d)}" | ||
4 | PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux," | ||
diff --git a/recipes-core/glib-2.0/glib-2.0_%.bbappend b/recipes-core/glib-2.0/glib-2.0_%.bbappend index 74e22b3..e5d2f6f 100644 --- a/recipes-core/glib-2.0/glib-2.0_%.bbappend +++ b/recipes-core/glib-2.0/glib-2.0_%.bbappend | |||
@@ -1 +1 @@ | |||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)} | inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'meson-selinux', '', d)} | ||