feat(boards): Support board revisions in setup scripts.

* Make setup.sh/ps1 prompt for board revision for boards that have revisions
This commit is contained in:
zhiayang
2024-03-30 19:12:37 -04:00
committed by GitHub
parent fff1cbecdc
commit 4bef4e98f5
3 changed files with 78 additions and 1 deletions

View File

@@ -16,7 +16,11 @@
"$defs": {
"id": {
"type": "string",
"pattern": "^[a-z0-9_]+$"
"pattern": "^[a-z0-9_]+(@([A-Z]|[0-9]+|([0-9]+(\\.[0-9]+){1,2})))?$"
},
"revision": {
"type": "string",
"pattern": "[A-Z]|[0-9]+|([0-9]+(\\.[0-9]+){1,2})"
},
"keyboard_siblings": {
"type": "array",
@@ -202,6 +206,15 @@
},
"exposes": {
"$ref": "#/$defs/interconnects"
},
"revisions": {
"type": "array",
"items": {
"$ref": "#/$defs/revision"
}
},
"default_revision": {
"$ref": "#/$defs/revision"
}
}
},