]> code.ossystems Code Review - openembedded-core.git/commitdiff
prelink: add PACKAGECONFIG for selinux
authorYi Zhao <yi.zhao@windriver.com>
Mon, 16 Aug 2021 02:09:10 +0000 (10:09 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Aug 2021 08:52:18 +0000 (09:52 +0100)
Add PACKAGECONFIG for selinux rather than disable it directly. This is
useful for selinux distro feature.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/prelink/prelink_git.bb

index 78d4c718179897cf6f67f9ee4080f9f7063eab56..24713b61f84723e61250e496200c9caa34e68866 100644 (file)
@@ -48,9 +48,11 @@ inherit autotools
 
 BBCLASSEXTEND = "native"
 
-EXTRA_OECONF = "--disable-selinux --with-pkgversion=${PV}-${PR} \
+EXTRA_OECONF = "--with-pkgversion=${PV}-${PR} \
        --with-bugurl=http://bugzilla.yoctoproject.org/"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
 
 #
 # For target prelink we need to ensure paths match the lib path layout