diff mbox series

[meta-selinux,2/2] libselinux: enable nativesdk

Message ID 20260804114749.625810-2-dmitry.baryshkov@oss.qualcomm.com
State New
Headers show
Series [meta-selinux,1/2] libsepol: enable nativesdk | expand

Commit Message

Dmitry Baryshkov Aug. 4, 2026, 11:47 a.m. UTC
Enable nativesdk class extension, letting libselinux to satisfy
dependencies of nativesdk-rpm if SELinux is enabled by the distro. The
binaries are not necessary for the SDK, so they are explicitly dropped.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 recipes-security/selinux/libselinux_3.10.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/recipes-security/selinux/libselinux_3.10.bb b/recipes-security/selinux/libselinux_3.10.bb
index 86c9168a002d..94f3fcdf861d 100644
--- a/recipes-security/selinux/libselinux_3.10.bb
+++ b/recipes-security/selinux/libselinux_3.10.bb
@@ -32,4 +32,9 @@  EXTRA_OEMAKE:append:libc-musl = " FTS_LDLIBS=-lfts"
 # sections which are not affected by -ffile-prefix-map, causing buildpaths QA failure
 LTO = ""
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
+
+do_install:append:class-nativesdk() {
+    # /sbin is hardcoded in the Makefile
+    rm -r ${D}${prefix}/sbin
+}