通过shell环境变量对MACHINE变量进行Yocto bitbake配置 [英] Yocto bitbake configuration for MACHINE variable via shell environment variable
问题描述
通过Yocto Project进行构建,对于MACHINE,环境变量或在local.conf中设置的变量,首选或由bitbake选择哪个变量
Building via Yocto Project,Which variable will be preferred or picked by bitbake for MACHINE ,environment variable or as set in local.conf
推荐答案
使用bitbake的答案通常是取决于",但是通常在MACHINE的情况下,环境变量会获胜.
The answer as usual with bitbake is "it depends" but usually in the case of MACHINE, the environment variable wins.
首选项取决于配置文件如何设置变量.通常,MACHINE是通过软分配设置的(例如 MACHINE?="intel-corei7-64"
),并且软分配不会覆盖环境变量.常规分配( MACHINE ="intel-corei7-64"
)将不遵守环境变量.
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.
这篇关于通过shell环境变量对MACHINE变量进行Yocto bitbake配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!