Search code examples
device-treezephyr-rtos

What is the use of yaml files in zephyr


I have started understanding zephyr

Looking into samples/basic/blinky, there is a file sample.yaml

From Documentation:

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

Just to understand the importance, i moved the sample.yaml into our home folder and built, flashed the led blink application and it blinks.

Is it necessary to have yaml file in our application directory and when it is needed?

this information


Solution

  • yaml files in zephyr are used for:

    • binding information related to devicetree hardware description
    • configuration of test cases

    As you have already found, devicetree binding are documented here.

    About zephyr test framework read all the details in the official docs

    In particular, sample.yaml files located inside the application project directory define tests cases to be executed by the sanitycheck tool. Read here for more details.