Skip to content

tools: Introduce extract-platinfo

Douglas Raillard requested to merge github/fork/douglas-raillard-arm/_pr85 into next

Introduce a dummy CLI tool to get a plat_info.yml file suitable for loading using either:

  • PlatformInfo.from_yaml_map('plat_info.yml')"
  • exekall run --conf plat_info.yml"

The CLI is a bit crippled as it does not allow using a different file name than plat_info.yml, and it does not give the choice to evaluate deffered values or not (i.e. RTapp calibration will be run, which can be lengthy and useless depending on the use case).

We may want to introduce a Target.add_argparse_args(parser) function that would add the same arguments as from_cli(), but on an existing parser. That would allow simple scripts to be built on top of that, giving a chance to register a couple of parameters like the ones missing here.

Also, we may want to change the default log-level, to avoid having to specify --log-level info all the time.

Merge request reports