Yocto Link:
https://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html
If the first recipe is named a_1.1.bb
, then the PN
variable will be set to “a”, and the PV
variable will be set to 1.1.
If we then have a recipe named a_1.2.bb
, BitBake will choose 1.2 by default. However, if we define the following variable in a .conf
file that BitBake parses, we can change that.
PREFERRED_VERSION_a = "1.1"
===============================================================================================
Openembeded Codes:
openembedded-core/meta/conf/documentation.conf:333:PREFERRED_VERSION[doc] = "If there are multiple versions of recipes available, this variable determines which recipe should be given preference."
PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:60:PREFERRED_VERSION_glibc-locale ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:61:PREFERRED_VERSION_glibc-mtrace ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:62:PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:63:PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:64:PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:65:PREFERRED_VERSION_nativesdk-glibc-initial ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:66:PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:69:PREFERRED_VERSION_qemu ?= "${QEMUVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:70:PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:71:PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}"
openembedded-core/meta/conf/distro/include/tcmode-default.inc:76:PREFERRED_VERSION_virtual/${TARGET_PREFIX}go ?= "${GOVERSION}"
==============================================================================================