1# We have a conf and classes directory, add to BBPATH
2BBPATH .= ":${LAYERDIR}"
3
4# We have recipes-* directories, add to BBFILES
5BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
6	${LAYERDIR}/recipes-*/*/*.bbappend"
7
8BBFILE_COLLECTIONS += "security"
9BBFILE_PATTERN_security = "^${LAYERDIR}/"
10BBFILE_PRIORITY_security = "8"
11
12LAYERSERIES_COMPAT_security = "mickledore"
13
14LAYERDEPENDS_security = "core openembedded-layer"
15
16BBFILES_DYNAMIC += " \
17  perl-layer:${LAYERDIR}/dynamic-layers/meta-perl/recipes-*/*/*.bb \
18  perl-layer:${LAYERDIR}/dynamic-layers/meta-perl/recipes-*/*/*.bbappend \
19  meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bb \
20  meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bbappend \
21  networking-layer:${LAYERDIR}/dynamic-layers/networking-layer/recipes-*/*/*.bb \
22  networking-layer:${LAYERDIR}/dynamic-layers/networking-layer/recipes-*/*/*.bbappend \
23"
24
25# Sanity check for meta-security layer.
26# Setting SKIP_META_SECURITY_SANITY_CHECK to "1" would skip the bbappend files check.
27INHERIT += "sanity-meta-security"
28
29QB_KERNEL_CMDLINE_APPEND = " ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', 'apparmor=1 security=apparmor', '', d)}"
30
31