Building via Yocto Project,Which variable will be preferred or picked by bitbake for MACHINE ,environment variable or as set in local.conf
The answer as usual with bitbake is "it depends" but usually in the case of MACHINE, the environment variable wins.
The preference depends on how the configuration file sets the variable. Typically MACHINE is set with soft assignment (e.g. MACHINE ?= "intel-corei7-64"
) and soft assignment will not override a environment variable. A normal assignment (MACHINE = "intel-corei7-64"
) would not respect the environment variable.