Steps to Add Conditions in the YAML File - 2025.2 English - UG1647

Porting Guide for embeddedsw Components System Device Tree Based Build Flow (UG1647)

Document ID
UG1647
Release Date
2025-12-03
Version
2025.2 English
This section describes how to add steps in the YAML file.
  1. Under a valid section, create a dictionary entry named condition.
  2. The condition should be defined as a Python code snippet, represented as a YAML string, which determines the section's return values based on the variables exported from the build flow: platform, proc, and variant.
  3. The condition can be a multi-line python conditional code.
  4. The python code must contain a variable with the YAML section name.
  5. Ensure the condition:
    • Uses input parameters proc, platform, and variant.
    • Modifies the variable (having the same name as YAML section's name) to produce the desired output.
    • Is syntactically correct Python code.
    • Contains proper indentation (2 spaces per level, as per YAML standards).
  6. Validate YAML Syntax using a YAML linter or validator to check for syntax errors.