bitbake: how does the build system choose the recipe provided by more than one layer

前端 未结 1 1355
萌比男神i
萌比男神i 2021-01-02 13:03

The meta layer provide recipe:

meta/recipes-graphics/x11-common/xserver-nodm-init.bb 

The meta-oe layer provide re

相关标签:
1条回答
  • 2021-01-02 13:25

    Layer priority (BBFILE_PRIORITY) and recipe version number (PV, often automated from filename) will decide which recipe is used. The recipe in higher priority layer will be used even if the recipe version in that layer is lower, so the version numbers should only matter if the layer priorities are the same.

    In your case the recipe in meta/ has no explicit version number: PV defaults to 1.0.

    You can use bitbake-layers show-layers to see the priorities of all your layers, and e.g. bitbake -e <recipe> | grep ^PV to check which version actually got selected for the recipe. To override a "wrong" selection of a specific recipe you can use PREFERRED_VERSION_<recipe> = <version> in your distro or local configuration.

    0 讨论(0)
提交回复
热议问题