summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-07 13:52:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-10 10:15:45 +0000
commit860c941741ca57bdc6fdbb67ea3ad94bb8d08c16 (patch)
tree1ed4c939e835c1003639898b2c8af949ac72f736
parent2b3ae58f5eaecc8474761c543ff5347aa0e3c4c8 (diff)
downloadopenembedded-core-860c941741ca57bdc6fdbb67ea3ad94bb8d08c16.tar.gz
openembedded-core-860c941741ca57bdc6fdbb67ea3ad94bb8d08c16.tar.bz2
openembedded-core-860c941741ca57bdc6fdbb67ea3ad94bb8d08c16.zip
shadow: use config 'attr' if distro has 'xattr'
When DISTRO_FEATURES has 'xattr' the shadow package now automatically activates its config 'attr'. Signed-off-by: José Bollo <jose.bollo@iot.bzh> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-extended/shadow/shadow.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index 99ffac35d1..e59ff640e3 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -74,7 +74,8 @@ PAM_PLUGINS = "libpam-runtime \
pam-plugin-shells \
pam-plugin-rootok"
-PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}"
PACKAGECONFIG_class-native = ""
PACKAGECONFIG_class-nativesdk = ""
PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}"