通过 shell 环境变量为 MACHINE 变量配置 Yocto bitbake
Yocto bitbake configuration for MACHINE variable via shell environment variable
通过 Yocto 项目构建,bitbake 将首选或选择哪个变量用于机器、环境变量或在 local.conf
中设置
设置为 local.conf
来自
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.
通常 bitbake 的答案是 "it depends" 但通常在 MACHINE 的情况下,环境变量获胜。
首选项取决于配置文件如何设置变量。通常 MACHINE 设置有软赋值(例如 MACHINE ?= "intel-corei7-64"
)并且软赋值不会覆盖环境变量。正常分配 (MACHINE = "intel-corei7-64"
) 不会遵守环境变量。
通过 Yocto 项目构建,bitbake 将首选或选择哪个变量用于机器、环境变量或在 local.conf
中设置设置为 local.conf
来自 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.
通常 bitbake 的答案是 "it depends" 但通常在 MACHINE 的情况下,环境变量获胜。
首选项取决于配置文件如何设置变量。通常 MACHINE 设置有软赋值(例如 MACHINE ?= "intel-corei7-64"
)并且软赋值不会覆盖环境变量。正常分配 (MACHINE = "intel-corei7-64"
) 不会遵守环境变量。