summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2016-09-23 10:36:11 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2016-11-01 09:20:37 -0400
commit02602ac9c1f3e61f11d90053c578575254fa6323 (patch)
tree413f66f1b814504d4f7da88119e0bee94d2f40bb
parent2f8861779cb6b71a832b4c8a5a85fa72b1f056ce (diff)
downloadmeta-selinux-02602ac9c1f3e61f11d90053c578575254fa6323.tar.gz
iproute2: make packageconfig selinux work
iproute2 calls command pkg-config to check whether libselinux exists then enable or disable selinux support. That makes packageconfig doesn't work. The packageconfig selinux is set by checking whether distro feature selinux exists in with-selinux.bbclass. Modify the configure result file with same criteria. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-connectivity/iproute2/iproute2_%.bbappend8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-connectivity/iproute2/iproute2_%.bbappend b/recipes-connectivity/iproute2/iproute2_%.bbappend
index c1e8ed6..c866b54 100644
--- a/recipes-connectivity/iproute2/iproute2_%.bbappend
+++ b/recipes-connectivity/iproute2/iproute2_%.bbappend
@@ -1 +1,9 @@
1inherit with-selinux 1inherit with-selinux
2
3do_configure_append() {
4 if ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}; then
5 sed -i 's/\(HAVE_SELINUX:=\).*/\1y/' ${B}/Config
6 else
7 sed -i 's/\(HAVE_SELINUX:=\).*/\1n/' ${B}/Config
8 fi
9}