zephyr中yaml文件有什么用

What is the use of yaml files in zephyr

我开始了解zephyr

查看 samples/basic/blinky,有一个文件 sample.yaml

来自文档:

Bindings are files in YAML format. .dts files describe the available hardware devices, but don’t tell the system which pieces of information are useful, or what kind of configuration output (#define’s) should be generated. Bindings provide

为了了解其重要性,我将 sample.yaml 移至我们的主文件夹并构建、闪烁 LED 闪烁应用程序,它闪烁。

我们的应用目录下是否需要yaml文件,什么时候需要?

this information

zephyr 中的 yaml 文件用于:

  • 与设备树硬件描述相关的绑定信息
  • 测试用例配置

如您所见,设备树绑定已记录在案 here

关于zephyr测试框架阅读官方的所有细节docs

特别是,位于应用程序项目目录中的 sample.yaml 个文件定义了测试用例 由 sanitycheck 工具执行。阅读 here 了解更多详情。