mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-17 04:07:20 +00:00
tpm: move to a sub layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
# We have a conf and classes directory, add to BBPATH
|
||||||
|
BBPATH .= ":${LAYERDIR}"
|
||||||
|
|
||||||
|
# We have a recipes directory, add to BBFILES
|
||||||
|
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend ${LAYERDIR}/classes/*.bbclass"
|
||||||
|
|
||||||
|
BBFILE_COLLECTIONS += "tpm-layer"
|
||||||
|
BBFILE_PATTERN_tpm-layer = "^${LAYERDIR}/"
|
||||||
|
BBFILE_PRIORITY_tpm-layer = "6"
|
||||||
|
|
||||||
|
LAYERDEPENDS_tpm-layer = " \
|
||||||
|
core \
|
||||||
|
"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
# TPM kernel support
|
||||||
|
|
||||||
|
KERNEL_FEATURES_append += "${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' features/tpm/tpm.scc', '', d)}"
|
||||||
|
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.10:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.10:"
|
||||||
|
|
||||||
# TPM kernel support
|
|
||||||
KERNEL_FEATURES_append += "${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' features/tpm/tpm.scc', '', d)}"
|
|
||||||
|
|
||||||
SRC_URI += "\
|
SRC_URI += "\
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', ' file://apparmor.cfg', '', d)} \
|
${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', ' file://apparmor.cfg', '', d)} \
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user