简体   繁体   English

Yocto、OpenEmbedded、Poky……健全性检查

[英]Yocto, OpenEmbedded, Poky… Sanity check

I'm expriencing a great confusion about the threesom of terms: Yocto, OpenEmbedded and Poky.我对这三个术语感到非常困惑:Yocto、OpenEmbedded 和 Poky。 I'll quote some quotes from the documentation, note what i understand and ask some questions along:我将引用文档中的一些引述,注意我的理解并提出一些问题:

What is Yocto?什么是约克托?
I'll start with trying to understand what exactly is the Yocto Project.我将首先尝试了解 Yocto 项目到底什么。 This is from the first paragraph of the Yocto Project Overview and Concepts Manual :这是来自Yocto 项目概述和概念手册的第一段:

The Yocto Project is an open source collaboration project that helps developers create custom Linux-based systems that are designed for embedded products regardless of the product's hardware architecture. Yocto 项目是一个开源协作项目,可帮助开发人员创建基于 Linux 的定制系统,这些系统专为嵌入式产品而设计,无论产品的硬件架构如何。 Yocto Project provides a flexible toolset and a development environment that allows embedded device developers across the world to collaborate through shared technologies, software stacks, configurations, and best practices used to create these tailored Linux images. Yocto Project 提供了灵活的工具集和开发环境,允许世界各地的嵌入式设备开发人员通过共享技术、软件堆栈、配置和用于创建这些定制 Linux 映像的最佳实践进行协作。

Ok, i understand that Yocto is a project that helps developers to.. and provides.. But exactly is it?好的,我知道 Yocto 是一个帮助开发人员……并提供……的项目,但究竟是这样吗? is it a software?它是一个软件吗? is it just a bunch of people?只是一群人吗? The word "project" can be understood in many ways. “项目”这个词可以有多种理解。

OpenEmbedded and Poky : OpenEmbedded 和 Poky

This is the definition of the OpenEmbedded build system from the Reference Manual , Chapter 2:这是参考手册第 2 章中 OpenEmbedded 构建系统的定义:

The build system specific to the Yocto Project.特定于 Yocto 项目的构建系统。 The OpenEmbedded build system is based on another project known as "Poky", which uses BitBake as the task executor. OpenEmbedded 构建系统基于另一个名为“Poky”的项目,该项目使用 BitBake 作为任务执行器。

It seems that OpenEmbedded is based on another project named "Poky" (In what sense is this a project? is it a software? etc.), and that Poky uses BitBake. OpenEmbedded 似乎是基于另一个名为“Poky”的项目(在什么意义上这是一个项目?它是一个软件吗?等等),而 Poky 使用 BitBake。 From other sources i read i understand that BitBake is the actual software that does all the building.从我读到的其他来源,我了解到 BitBake 是完成所有构建的实际软件。

Now let's get to the definition of Poky.现在让我们来看看 Poky 的定义。 This is from the Reference Manual also:这也来自参考手册:

Poky, which is pronounced Pock-ee, is a reference embedded distribution and a reference test configuration. Poky,发音为 Pock-ee,是参考嵌入式发行版和参考测试配置。 Poky provides the following... Poky 提供以下...

Poky is explained everywhere as a "reference distribution", something that you can start with. Poky 在任何地方都被解释为“参考分布”,您可以从它开始。 What i understand from this definition is this: Let's take Visual Studio as a comparison: You have Visual Studio, which is a tool, and you can (may) have some "reference code" that is built and run by Visual Studio.我从这个定义中理解的是:让我们拿 Visual Studio 作为比较:你有 Visual Studio,它是一个工具,你可以(可能)有一些由 Visual Studio 构建和运行的“参考代码”。
Back to our business: Seemingly, Poky is sort of a "reference code" that the tool, in our case: OpenEmbedded, can build.回到我们的业务:从表面上看,Poky 是一种“参考代码”,在我们的示例中为 OpenEmbedded,可以构建该工具。 But then again, in the definition of OpenEmbedded it says that OpenEmbedded is based on Poky.但话又说回来,在 OpenEmbedded 的定义中,它说 OpenEmbedded基于Poky。

It only gets worse: This is from the Yocto Project Overview and Concepts Manual, 2.3.4:只会变得更糟:这是来自Yocto 项目概述和概念手册,2.3.4:

Poky is the Yocto Project reference distribution. Poky 是 Yocto 项目的参考发行版。 It contains the Open-Embedded build system (BitBake and OE-Core) as well as a set of metadata to get you started building your own distribution.它包含开放嵌入式构建系统(BitBake 和 OE-Core)以及一组元数据,可帮助您开始构建自己的发行版。

So now Poky contains OpenEmbedded, which is based on Poky.所以现在 Poky包含OpenEmbedded,它基于Poky。 What's going on??这是怎么回事??

I'd be really happy if someone could clarify all these terms to me, with respect to the famous figure that describes the relations between all these.如果有人能向我澄清所有这些术语,关于描述所有这些之间关系的著名人物,我会非常高兴。

Here's the hierarchy, as I understand:这是层次结构,据我所知:

  1. OpenEmbedded : A set of source projects that can be used to build a custom Linux Distribution OpenEmbedded :一组可用于构建自定义 Linux 发行版的源项目

OpenEmbedded is a build automation framework and cross-compile environment used to create Linux distributions for embedded devices. OpenEmbedded 是一个构建自动化框架和交叉编译环境,用于为嵌入式设备创建 Linux 发行版。 The OpenEmbedded framework is developed by the OpenEmbedded community, which was formally established in 2003. OpenEmbedded 框架由 OpenEmbedded 社区开发,该社区于 2003 年正式成立。

OpenEmbedded (OE), is where you can submit any bitbake and/or common meta-data layer related improvements. OpenEmbedded (OE),您可以在此处提交任何 bitbake 和/或常见的元数据层相关改进。

  1. Yocto : A collaborative project that use Openembedded to create customizable Linux distribution for embedded and IOT devices Yocto :一个协作项目,使用 Openembedded 为嵌入式和 IOT 设备创建可定制的 Linux 发行版

Yocto Project is the community that uses projects from OpenEmbedded to create distribution suitable for embedded and IOT devices. Yocto Project 是使用 OpenEmbedded 项目创建适用于嵌入式和 IOT 设备的发行版的社区。 Yocto project maintains, tests and releases these at regular defined intervals. Yocto 项目定期维护、测试和发布这些。 This community includes many active silicon vendors who provide their tested BSP against tested distribution that community provides.该社区包括许多活跃的芯片供应商,他们根据社区提供的经过测试的发行版提供经过测试的 BSP。 If you check https://git.yoctoproject.org/ , you'll notice BSP layers from famous silicon vendors such as ARM (meta-qrm), Intel (meta-intel), TI (meta-ti) etc. Key thing to note is the BSP vendors test their BSPs on the software provided by community (named as poky)如果您查看https://git.yoctoproject.org/ ,您会注意到来自著名芯片供应商的 BSP 层,例如 ARM (meta-qrm)、Intel (meta-intel)、TI (meta-ti) 等。需要注意的是 BSP 供应商在社区提供的软件(名为 poky)上测试他们的 BSP

  1. Poky : A Reference embedded Linux distribution Poky :参考嵌入式 Linux 发行版

Poky is a reference distribution. Poky 是一个参考分布。 That is, when poky is built a predetermined combination of software packages (determined by the community) are built and the generated OS image contains these.也就是说,当构建 poky 时,会构建预先确定的软件包组合(由社区确定),并且生成的操作系统映像包含这些。 The Yocto developers define "poky" distribution. Yocto 开发人员定义了“poky”发行版。 The BSP vendors strive to support Poky. BSP 供应商努力支持 Poky。 Poky is a proof of working software distro. Poky 是工作软件发行版的证明。 If a BSP vendor can run Poky and test it, the BSP vendors know they are compliant with what community defined.如果 BSP 供应商可以运行 Poky 并对其进行测试,那么 BSP 供应商就知道他们符合社区定义的要求。

To sum it up把它们加起来

OpenEmbedded is a community where the source contributions for bitbake, generic meta layers are made. OpenEmbedded 是一个社区,其中为 bitbake、通用元层做出了源贡献。 Yocto Project uses these OE project to define a usable Linux distribution Poky. Yocto Project 使用这些 OE 项目来定义一个可用的 Linux 发行版 Poky。 Foundation maintains and sets release cadence for various versions of Poky. Foundation 维护并设置 Poky 各种版本的发布节奏。

One liner一个班轮

Yocto Project community uses projects from OpenEmbedded to create a working Linux Distribution named as "Poky". Yocto 项目社区使用来自 OpenEmbedded 的项目来创建一个名为“Poky”的可用 Linux 发行版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM