summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2021-08-19 12:47:05 +0800
committerJoe MacDonald <joe@deserted.net>2021-08-29 21:34:22 -0400
commit1fda4b3a757329facdbfe6f963cc04c1c9ecc275 (patch)
treebf4a033bf10b6ffdf38c37f45b477555e2996598
parent4e073446955a3fa63052109f211d916cb03ffb89 (diff)
downloadmeta-selinux-1fda4b3a757329facdbfe6f963cc04c1c9ecc275.tar.gz
net-tools: fix selinux build
Simply adding EXTRA_OEMAKE doesn't work for selinux build. We need to modify config files in do_configure. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r--recipes-extended/net-tools/net-tools_selinux.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/recipes-extended/net-tools/net-tools_selinux.inc b/recipes-extended/net-tools/net-tools_selinux.inc
index 1bcf7be..6454205 100644
--- a/recipes-extended/net-tools/net-tools_selinux.inc
+++ b/recipes-extended/net-tools/net-tools_selinux.inc
@@ -1,5 +1,10 @@
1inherit selinux 1inherit enable-selinux
2 2
3DEPENDS += "${LIBSELINUX}" 3PACKAGECONFIG[selinux] = ",,libselinux"
4 4
5EXTRA_OEMAKE += "${@target_selinux(d, 'HAVE_SELINUX=1', 'HAVE_SELINUX=0')}" 5do_configure:append() {
6 if ${@bb.utils.contains('PACKAGECONFIG', 'selinux', 'true', 'false', d)} ; then
7 echo "#define HAVE_SELINUX 1" >> ${S}/config.h
8 echo "HAVE_SELINUX=1" >> ${S}/config.make
9 fi
10}