Yocto执行本地环境脚本的时候,会有许多的目标选项,以下是各个目标选项的含义
[poky]$source poky/oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you from /home/heyanbo/workqueue/poky/poky/meta-poky/conf/templates/default/local.conf.sample
You may wish to edit it to, for example, select a different MACHINE (target
hardware).
You had no conf/bblayers.conf file. This configuration file has therefore been
created for you from /home/heyanbo/workqueue/poky/poky/meta-poky/conf/templates/default/bblayers.conf.sample
To add additional metadata layers into your configuration please add entries
to conf/bblayers.conf.
The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
https://docs.yoctoproject.org
For more information about OpenEmbedded see the website:
https://www.openembedded.org/
This is the default build configuration for the Poky reference distribution.
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-full-cmdline
core-image-sato
core-image-weston
meta-toolchain
meta-ide-support
You can also run generated qemu images with a command like 'runqemu qemux86-64'.
Other commonly useful commands are:
- 'devtool' and 'recipetool' handle common recipe tasks
- 'bitbake-layers' handles common layer tasks
- 'oe-pkgdata-util' handles common target package tasks
core-image-minimal
这是一个非常小型的镜像,仅包括基本的系统启动所需的组件,例如Shell、init系统等。一般情况下,这个镜像主要用于测试或Debug。
core-image-full-cmdline
这个镜像比core-image-minimal大一些,包括了更多的命令行工具以及库,例如SSH、Python等。
core-image-sato
这是一个图形化的镜像,包括了GTK+和Matchbox窗口管理器,以及Sato这个为嵌入式设备设计的桌面环境。如果你需要在你的设备上运行GUI应用,可能会使用这个镜像
core-image-weston
这个也是一个图形化的镜像,但它使用的是Wayland协议以及Weston参考实现来作为窗口管理器。这个镜像对于需要使用Wayland/Weston的设备是很有用的
meta-toolchain
这并不是一个镜像,而是一个编译链的元数据层。它包含了GCC编译器、glibc库、binutils等一系列用于交叉编译的工具。
meta-ide-support
这也不是一个镜像,而是一种元数据层。这个元数据层包含了一些用于集成开发环境(IDE)的配套工具和库,例如gdb等