mirror of
https://git.yoctoproject.org/meta-security
synced 2026-04-20 11:29:37 +00:00
Yocto mickledore introduced the addpylib directive for explicitly adding layer paths to the PYTHONPATH. Standalone OEQA test suite discovery does not require this directive but it is required to import test cases from other layers, e.g. to extend and modify the test cases. Signed-off-by: Armin Kuster <akuster808@gmail.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
# We have a conf and classes directory, add to BBPATH
|
|
BBPATH =. "${LAYERDIR}:"
|
|
|
|
# We have a packages directory, add to BBFILES
|
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
|
${LAYERDIR}/recipes-*/*/*.bbappend"
|
|
|
|
BBFILE_COLLECTIONS += "integrity"
|
|
BBFILE_PATTERN_integrity := "^${LAYERDIR}/"
|
|
BBFILE_PRIORITY_integrity = "6"
|
|
|
|
# Set a variable to get to the top of the metadata location. Needed
|
|
# for finding scripts (when following the README.md instructions) and
|
|
# default debug keys (in ima-evm-rootfs.bbclass).
|
|
INTEGRITY_BASE := '${LAYERDIR}'
|
|
|
|
# We must not export this path to all shell scripts (as in "export
|
|
# INTEGRITY_BASE"), because that causes problems with sstate (becames
|
|
# dependent on location of the layer). Exporting it to just the
|
|
# interactive shell is enough.
|
|
OE_TERMINAL_EXPORTS += "INTEGRITY_BASE"
|
|
|
|
LAYERSERIES_COMPAT_integrity = "mickledore"
|
|
# ima-evm-utils depends on keyutils from meta-oe
|
|
LAYERDEPENDS_integrity = "core openembedded-layer"
|
|
|
|
BBLAYERS_LAYERINDEX_NAME_integrity = "meta-integrity"
|
|
|
|
# Sanity check for meta-integrity layer.
|
|
# Setting SKIP_META_INTEGRITY_SANITY_CHECK to "1" would skip the bbappend files check.
|
|
INHERIT += "sanity-meta-integrity"
|
|
|
|
BBFILES_DYNAMIC += " \
|
|
networking-layer:${LAYERDIR}/dynamic-layers/meta-networking/recipes-*/*/*.bbappend \
|
|
"
|
|
|
|
addpylib ${LAYERDIR}/lib oeqa
|