Skip to content

Conversation

@amrianan
Copy link
Contributor

@amrianan amrianan commented Dec 2, 2025

For each configuration subnode in qcom-fitimage.its:

  • read its "compatible" property
  • strip "qcom," prefix
  • split the remaining string on "-"
  • verify that each resulting substring exists as a subnode name in qcom-metadata.dts

Output:

  • If everything passes: "success"
  • If any missing: one line per miss: fail <config_subnode_name>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add usage of the script in comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

set -euo pipefail

ITS_FILE="qcom-fitimage.its"
META_FILE="qcom-metadata.dts"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we take the file path from user? If not provided, then fallback to these?

Usage:
   - To verify that, for every substring in the comptables of each config added in the .its file, a corresponding subnode entry exists in the metadata.

For each configuration subnode in qcom-fitimage.its:
   - read its "compatible" property
   - strip "qcom," prefix
   - split the remaining string on "-"
   - verify that each resulting substring exists as a subnode name
     in qcom-metadata.dts

 Output:
   - If everything passes: "success"
   - If any missing: one line per miss:
         fail <substring> <config_subnode_name>

Signed-off-by: Amrit Anand <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants