From ada9e0f89e9ae7d9d70716ffa1306243a2afa5ca Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Tue, 24 Aug 2021 08:12:58 -0500 Subject: meta-phosphor: enable DISTRO_FEATURE 'security' The meta-security layer requires the DISTRO_FEATURE 'security' set otherwise it gives a warning: WARNING: You have included the meta-security layer, but 'security' has not been enabled in your DISTRO_FEATURES. Some bbappend files and preferred version setting may not take effect. See the meta-security README for details on enabling security support. This DISTRO_FEATURE doesn't really seem to do anything except enable an additional include file in the linux-yocto recipe (which itself then checks other features). It seems entirely safe for us to enable this feature everywhere to avoid the warning. $ git grep -A4 "DISTRO_FEATURES" | grep "'security'" meta-security/README:to have 'security' in DISTRO_FEATURES to have effect. meta-security/README: 'security' has not been enabled in your DISTRO_FEATURES. Some bbappend files meta-security/classes/sanity-meta-security.bbclass: if 'security' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check: meta-security/classes/sanity-meta-security.bbclass:'security' has not been enabled in your DISTRO_FEATURES. Some bbappend files \ meta-security/recipes-kernel/linux/linux-yocto_5.%.bbappend:require ${@bb.utils.contains('DISTRO_FEATURES', 'security', '${BPN}_security.inc', '', d)} Signed-off-by: Patrick Williams Change-Id: Ife1549783b356f87f429466f260f34b9a41d002c --- meta-phosphor/conf/distro/include/phosphor-base.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-phosphor/conf/distro/include/phosphor-base.inc b/meta-phosphor/conf/distro/include/phosphor-base.inc index dba3fe45d..8c5e4fc3b 100644 --- a/meta-phosphor/conf/distro/include/phosphor-base.inc +++ b/meta-phosphor/conf/distro/include/phosphor-base.inc @@ -99,6 +99,7 @@ DISTRO_FEATURES_DEFAULT = " \ ipv4 \ ipv6 \ pam \ + security \ slp \ systemd \ " -- cgit v1.2.3