简体   繁体   English

yocto 中的图像和食谱有什么区别?

[英]What is the difference between images and recipes in yocto?

I am try to learn Yocto.I read the files on the website of Yocto.It is confusion that what is the difference between images and recipes?我正在尝试学习 Yocto。我阅读了 Yocto 网站上的文件。令人困惑的是图像和食谱之间有什么区别?

A recipe is a module/program configuration (eg config for building and installing into OS our desired libraries or programs like SSH services or nano editor).配方是一个模块/程序配置(例如,用于构建和安装到操作系统中的配置我们所需的库或程序,如 SSH 服务或 nano 编辑器)。 Image - is a resulting OS image ready for deployment onto eg USV stick or NAND.映像 - 是一个生成的操作系统映像,可以部署到例如 USV 棒或 NAND 上。

Recipe - All software/library should be described for Yocto Project via bitbake to process it: Download, decompress, patch if necessary, compile, and package (.deb, .ipk, .rpm)配方- 应通过bitbake为 Yocto Project 描述所有软件/库以对其进行处理:下载、解压缩、必要时打补丁、编译和 package(.deb、.ipk、.rpm)

Image - Includes all the recipes you want to install, example (openssh, picocom, python3, ...) in addition to being able to automate the image with Hostname, configured IP, startup scripts.图像- 包括您想要安装的所有配方,例如(openssh、picocom、python3、...),此外还能够使用主机名、配置的 IP、启动脚本自动执行图像。 The image would already be the end result of Bootloader + Kernel + Rootfs (your installed applications and programs).该映像已经是 Bootloader + Kernel + Rootfs(您安装的应用程序和程序)的最终结果。 In addition to many other customizations for the OS at startup, different File Systems and etc.除了在启动时针对操作系统的许多其他自定义,不同的文件系统等。

Recipes are the most common file type in a Yocto build description.食谱是 Yocto 构建描述中最常见的文件类型。 They contain instructions on how to configure, compile and deploy a given piece of software.它们包含有关如何配置、编译和部署给定软件的说明。 Recipes also contain the location of the source code.食谱还包含源代码的位置。 This location can either be a static release archive, or a reference to a Git repository.此位置可以是 static 发布存档,也可以是对 Git 存储库的引用。 Custom modifications to the sources themselves or the build process can be provided in form of patches.可以以补丁的形式提供对源本身或构建过程的自定义修改。 To minimize repetition for common tasks in recipes, such behavior is encapsulated in recipe class files, from which recipes can inherit.为了最大限度地减少配方中常见任务的重复,此类行为被封装在配方 class 文件中,配方可以从中继承。

Image contains all packages which have to be built and installed into the final root file system.映像包含必须构建并安装到最终根文件系统中的所有包。 The build system will take care that any known dependent package will also be installed.构建系统会注意安装任何已知的依赖 package。 The end goal for anyone using the Yocto Project should be to create a Linux distributions that is customized to match your product(s) requirements.使用 Yocto 项目的任何人的最终目标都应该是创建一个 Linux 分发版,该分发版可以根据您的产品要求进行定制。 Images are a central concept within the Yocto Project and essential to the definition of a Linux distribution.图像是 Yocto 项目中的核心概念,对于定义 Linux 分布至关重要。

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

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