Skip to contentSkip to conversation

prelink: add PACKAGECONFIG for selinux

PATCH New Yi Zhao 1 participant 1 message Aug 16, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 prelink: add PACKAGECONFIG for selinux

Add PACKAGECONFIG for selinux rather than disable it directly. This is useful for selinux distro feature.

---
 meta/recipes-devtools/prelink/prelink_git.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/prelink/prelink_git.bb +3 -1
index 78d4c71817..24713b61f8 100644
@@ -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
Signature · 1 line
2.25.1