Reading a book on Yocto. Got to the following page, which says:
BitBake provides a very easy-to-use way to write conditional metadata. It is done by a mechanism called overrides.
The OVERRIDES variable contains values separated by colons (:), and each value is an item we want to satisfy conditions. So, if we have a variable that is conditional on arm, and arm is in OVERRIDES, then the version of the variable that is specific to arm is used rather than the non-conditional version, as shown:
OVERRIDES = "architecture:os:machine" TEST = "defaultvalue" TEST_os = "osspecificvalue" TEST_other = "othercondvalue"
In this example,
TEST
will beosspecificvalue
due to the condition of os being inOVERRIDES
.
I'm unclear from this explanation how did TEST
become equal to osspecificvalue
. Would someone be able to explain it?
OVERRIDES
there isos
and noother
.TEST
variable is overrided byTEST_os
value. – DaubOVERRIDES
variable. What are thearchitecture
andmachine
values? How doe they affectos
value? – Hermosillobitbake -e <recipe> | grep ^OVERRIDES=
. You can also read definition in mega manual, I found it clearer than bitbake manual. – Daub