该文件是本地配置文件,所有本地用户设置都放置在此文件中。该文件中的注释为系统新用户可能需要更改的选项提供了一些指导,但几乎所有配置选项都可以在该文件中设置。更有冒险精神的用户可以查看 local.conf.sample.extended,其中包含了可以放在此文件中的其他配置示例,但新用户最初可能不需要其中任何一个。
This file is your local configuration file and is where all local user settings are placed. The comments in this file give some guide to the options a new user to the system might want to change but pretty much any configuration option can be set in this file. More adventurous users can look at local.conf.sample.extended which contains other examples of configuration which can be placed in this file but new users likely won't need any of them initially.
以 “#”字符开头的行会被注释掉,在某些情况下,默认值会作为注释提供给用户,以显示语法示例。启用该选项只需移除该字符,然后根据需要对变量进行修改即可。
Lines starting with the '#' character are commented out and in some cases the default values are provided as comments to show people example syntax. Enabling the option is a question of removing the character and making any change to the variable as required.
# Machine Selection
您需要选择一台特定的机器作为构建目标。有多种可在 QEMU 仿真器中启动和运行的仿真机器可供选择:
You need to select a specific machine to target the build with. There are a selection of emulated machines available which can boot and run in the QEMU emulator:
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
此外,还包括以下用于演示的硬件板目标机:
There are also the following hardware board target machines included for demonstration purposes:
#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "edgerouter"
如果未选择其他机器,则将默认机器设置为 qemux86-64:
This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "qemux86-64"
# Where to place downloads
在首次构建过程中,系统会从不同的上游项目下载许多不同的源代码压缩包。这可能需要一段时间,尤其是在网络连接速度较慢的情况下。这些都存储在 DL_DIR 中。在擦除和重建时,可以保留该目录,以加快后续编译的速度。在同一台机器上进行多次编译时,也可以共享该目录。
During a first build the system will download many different source code tarballs from various upstream projects. This can take a while, particularly if your network connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you can preserve this directory to speed up this part of subsequent builds. This directory is safe to share between multiple builds on the same machine too.
默认情况下,下载目录位于构建目录 TOPDIR 下。
The default is a downloads directory under TOPDIR which is the build directory.
DL_DIR ?= "${TOPDIR}/downloads"
# Where to place shared-state files
BitBake 具备根据先前构建的输出加速构建的功能。这是通过使用 “共享状态 ”文件来实现的,这些文件可以被视为缓存对象,而该选项则决定了这些文件的位置。
BitBake has the capability to accelerate builds based on previously built output. This is done using "shared state" files which can be thought of as cache objects and this option determines where those files are placed.
你可以清除 TMPDIR,使该目录保持不变,如果配置没有更改,构建过程将从这些文件重新生成。如果对配置进行了更改,则只会使用状态仍然有效的共享状态文件(使用校验和完成)。
You