Meeting the BitBake Tool
通过本章,我们将开始学习 Yocto 项目引擎如何在幕后工作的旅程。正如每一段旅程一样,沟通是至关重要的,因此我们需要理解 Yocto 项目工具所使用的语言,并学习如何充分利用这些工具来实现我们的目标。
With this chapter, we will now begin our journey of learning how the Yocto Project’s engine works behind the scenes. As is the case with every journey, communication is critical, so we need to understand the language used by the Yocto Project’s tools and learn how to get the best out of these tools to accomplish our goals.
前面几章向我们介绍了创建和仿真镜像文件的标准 Yocto Project 工作流程。在本章中,我们将探讨元数据的概念,以及 BitBake 如何读取这些元数据来收集内部数据。
The preceding chapters introduced us to the standard Yocto Project workflow for creating and emulating images. Now, in this chapter, we will explore the concept of metadata and how BitBake reads this metadata to make its internal data collections.
1,Understanding the BitBake tool
BitBake 任务调度程序是从 Gentoo 发行版中使用的软件包管理系统 Portage 分支而来的。然而,由于使用情况不同,这两个项目出现了很大的分歧。Yocto 项目和 OpenEmbedded 项目是 BitBake 的密集用户。BitBake 仍是一个独立的项目,有自己的开发周期和邮件列表 (
[email protected])。
The BitBake task scheduler started as a fork from Portage, the package management system used in the Gentoo distribution. However, the two projects diverged significantly due to different use cases. The Yocto Project and the OpenEmbedded Project are intensive users of BitBake. It remains a separate and independent project with its own development cycle and mailing list ([email protected]).
BitBake 是一个类似于 GNU Make 的工具。正如第 1 章 “认识 Yocto 项目 ”中所述,BitBake 是一个任务执行器和调度器,可以解析 Python 和 Shell Script 混合代码。
BitBake is a tool similar to GNU Make. As discussed in Chapter 1, Meeting the Yocto Project, BitBak