layer.conf: Insert addpylib declaration

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>
This commit is contained in:
Armin Kuster
2023-05-17 13:24:54 -04:00
parent 28d49dc056
commit ea5e2ad930
5 changed files with 9 additions and 0 deletions

View File

@@ -28,3 +28,4 @@ INHERIT += "sanity-meta-security"
QB_KERNEL_CMDLINE_APPEND = " ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', 'apparmor=1 security=apparmor', '', d)}"
addpylib ${LAYERDIR}/lib oeqa

View File

@@ -33,3 +33,5 @@ INHERIT += "sanity-meta-integrity"
BBFILES_DYNAMIC += " \
networking-layer:${LAYERDIR}/dynamic-layers/meta-networking/recipes-*/*/*.bbappend \
"
addpylib ${LAYERDIR}/lib oeqa

View File

@@ -13,3 +13,5 @@ LAYERSERIES_COMPAT_scanners-layer = "mickledore"
LAYERDEPENDS_scanners-layer = "core openembedded-layer meta-python"
BBLAYERS_LAYERINDEX_NAME_scanners-layer = "meta-security-compliance"
addpylib ${LAYERDIR}/lib oeqa

View File

@@ -15,3 +15,5 @@ LAYERVERSION_security-isafw = "1"
LAYERDEPENDS_security-isafw = "core"
LAYERSERIES_COMPAT_security-isafw = "mickledore"
addpylib ${LAYERDIR}/lib oeqa

View File

@@ -24,3 +24,5 @@ INHERIT += "sanity-meta-tpm"
BBFILES_DYNAMIC += " \
networking-layer:${LAYERDIR}/dynamic-layers/meta-networking/recipes-*/*/*.bbappend \
"
addpylib ${LAYERDIR}/lib oeqa