Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: list_hardware: Find all SoCs before checking runner configs #75601

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

57300
Copy link
Contributor

@57300 57300 commented Jul 8, 2024

When validating the flash runner configurations in soc.yml, the only SoCs that were considered had to be defined under this structure:

   family:
     - series:
         - socs:
             - name: ...

However, the family and series keys are optional, so the soc.yml files can also be arranged like this:

   family:
     - socs:
         - name: ...
   series:
     - socs:
         - name: ...
   socs:
     - name: ...

The solution is to move the validation code further down, so that it can reuse the SoC data that was already correctly parsed while initializing a Systems instance.

When validating the flash runner configurations in `soc.yml`, the only
SoCs that were considered had to be defined under this structure:

   family:
     - series:
         - socs:
             - name: ...

However, the `family` and `series` keys are optional, so the `soc.yml`
files can also be arranged like this:

   family:
     - socs:
         - name: ...
   series:
     - socs:
         - name: ...
   socs:
     - name: ...

The solution is to move the validation code further down, so that it can
reuse the SoC data that was already correctly parsed while initializing
a `Systems` instance.

Signed-off-by: Grzegorz Swiderski <[email protected]>
@57300 57300 requested a review from nordicjm July 8, 2024 14:38
@57300 57300 added the bug The issue is a bug, or the PR is fixing a bug label Jul 8, 2024
@57300 57300 added this to the v3.7.0 milestone Jul 8, 2024
@57300 57300 requested a review from carlescufi July 8, 2024 14:42
@nordicjm nordicjm self-assigned this Jul 10, 2024
@nashif nashif merged commit 9b68230 into zephyrproject-rtos:main Jul 10, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants