Переглянути джерело

package/coreutils: enable selinux support

Enable SELinux support if libselinux is selected. This allows utilities such as
ls to read and display extended attributes with ls -lZ

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Adam Duskett 3 роки тому
батько
коміт
c09d759a64
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      package/coreutils/coreutils.mk

+ 7 - 0
package/coreutils/coreutils.mk

@@ -93,6 +93,13 @@ else
 COREUTILS_CONF_OPTS += --disable-libcap
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+COREUTILS_DEPENDENCIES += libselinux
+COREUTILS_CONF_OPTS += --with-selinux
+else
+COREUTILS_CONF_OPTS += --without-selinux
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 COREUTILS_CONF_OPTS += --with-openssl=yes
 COREUTILS_DEPENDENCIES += openssl