简体   繁体   English

Yocto中BSP和分布层之间有什么区别

[英]What is the difference between BSP and distribution layers in Yocto

Can you please explain briefly what are BSP and distribution layers and what is the difference between them? 您能简单解释一下BSP和分布层是什么,它们之间有什么区别?

Actually I'm not looking for Yocto project manual references but will be glad to get explanation as you understand it, in your words. 实际上我并不是在寻找Yocto项目的手册参考资料,但是很高兴按照你的理解得到解释。

Well, despite what you ask for, the manual has the definition: Machine and policy configuration 好吧,尽管你要求的是,手册有定义: 机器和策略配置

The BSP layer is about providing a machine configuration (describing what HW your machine have) and to provide the necessary low level support, kernel and bootloader, external drivers, and possibly other applications for support and enablement. BSP层旨在提供机器配置(描述您的机器具有的硬件),并提供必要的低级支持,内核和引导加载程序,外部驱动程序以及可能的其他应用程序以支持和启用。

The BSP layer must not modify anything in any recipe, unless the machine(s) supported by that layer is selected. 除非选择了该层支持的机器,否则BSP层不得修改任何配方中的任何内容。

The distribution (policy) layer is responsible for configuration of distribution wide features and selections. 分发(策略)层负责配置分布范围的功能和选择。 Examples could be package format, C library, init system, etc. It should also decide whether to build enable X11, WiFi, Bluetooth, etc, support in all the other recipes. 示例可以是包格式,C库,init系统等。它还应该决定是否在所有其他配方中构建启用X11,WiFi,蓝牙等。 This is done by adding to the DISTRO_FEATURES variable, which different recipes later on should check in order to decide whether or not to build with different configurations. 这是通过添加到DISTRO_FEATURES变量来完成的,稍后应该检查哪些不同的配方,以便决定是否使用不同的配置进行构建。

As previously mentioned, check the manual for more detailed information. 如前所述,请查看手册以获取更多详细信息。

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

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