Yocto bitbake configuration for MACHINE variable via shell environment variable

自古美人都是妖i 提交于 2021-01-27 17:54:07

问题


Building via Yocto Project,Which variable will be preferred or picked by bitbake for MACHINE ,environment variable or as set in local.conf


回答1:


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.




回答2:


as set in local.conf

From http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-MACHINE

MACHINE Specifies the target device for which the image is built. You define MACHINE in the local.conf file found in the Build Directory.



来源:https://stackoverflow.com/questions/45684816/yocto-bitbake-configuration-for-machine-variable-via-shell-environment-variable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!