发行版功能、机器功能和图像功能之间有什么区别?它们之间有什么依赖关系?

What is the difference between distro features, machine features and image features ? What dependicies between them?

我正在使用 Yocto 项目为我的开发板构建自定义分发版。我只想问你,distro featuresmachine featuresimage features有什么区别?

Yocto 使用特征作为确定要包含在映像中的库、实用程序和内核模块的方法。

这三个功能类别(尤其是发行版和图像功能)之间存在一些重叠,并且在何处查找特定功能并不总是很明显。例如,api-documentation 是发行版功能,而 doc-pkgs 是图像功能。

所以这些定义是我自己的,查看 reference manual 了解更多详情。

机器特征与构建图像所针对的硬件有关。例如,rtc 特性指定硬件有一个 built-in real-time 时钟,而 bluetooth 特性表明硬件支持蓝牙。

Distro 具有 select 更广泛的软件支持类别,尽管与机器功能有一些重叠。 distro-level 功能的示例包括 ipv6systemdx11.

图像特征通常(但并非总是如此,参见 splashread-only-rootfs)用于启用对调试有用的功能和诊断问题。例如,allow-empty-password 配置 SSH 服务器允许 root 无密码登录,dbg-pkgs 为所有包安装调试符号在图像中。