Skip to content

Commit

Permalink
conf/layer.conf: add BBFILES_DYNAMIC and dynamic layers
Browse files Browse the repository at this point in the history
some recipes under meta-oe have dependency on meta-python,
and test_world of yocto-check-layer will failed with error
like:

ERROR: test_world (common.CommonCheckLayer)
ERROR: Nothing PROVIDES 'python3-pytoml-native' (but
/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
DEPENDS on or otherwise requires it). Close matches:
  python3-numpy-native
  python3-pycairo-native
  python3-rpm-native
ERROR: Required build target 'meta-world-pkgdata' has no buildable
providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
'mozjs', 'python3-pytoml-native']

fix by make these recipes only active when identified layers are
present

Signed-off-by: Changqing Li <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
sandy-lcq authored and kraj committed Mar 11, 2020
1 parent f5d2bf5 commit d178745
Show file tree
Hide file tree
Showing 50 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta-oe/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ BBFILE_PATTERN_openembedded-layer := "^${LAYERDIR}/"

BBFILE_PRIORITY_openembedded-layer = "6"

# only activates content when identified layers are present,
# to ensure yocto compatibility check pass
BBFILES_DYNAMIC += "meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bb \
"

# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
LAYERVERSION_openembedded-layer = "1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d178745

Please sign in to comment.