Skip to content

Commit

Permalink
scripts: make SoC field mandatory in board.yml
Browse files Browse the repository at this point in the history
With the support of omitting SoC field for single SoC boards then there
is no reason to have this field optional.

Users are still able to use a short board name when building.

But always requiring SoC field in the board.yml paves the way for future
enhancements to the new hw model without having to do a second update
to a lot of board.yml files.

Such enhancement can be:
- Create Kconfig SoC selection and thereby remove need for Kconfig
  boilerplate code, and also thereby remove risk of naming
  inconsistencies.
- Extend board documentation, so that web doc provides option to filter
  all boards with a given SoC.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
  • Loading branch information
tejlmand committed Jan 9, 2024
1 parent 8ed085c commit 9aae8a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/schemas/board-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ schema;board-schema:
required: true
type: str
socs:
required: false
required: true
type: seq
sequence:
- type: map
Expand All @@ -69,8 +69,6 @@ schema;board-schema:
type: str
variants:
include: variant-schema
variants:
include: variant-schema

type: map
mapping:
Expand Down

0 comments on commit 9aae8a0

Please sign in to comment.