|
222 | 222 | "title": "device:\nDocumentation: https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#device", |
223 | 223 | "type": "string", |
224 | 224 | "pattern": "^(([ -9;-~]+::)?[ -9;-~]+)?(:[ -9;-~]+)?$", |
225 | | - "description": "Unique device name. Overrules default board device setting.\nA unique processor ID is reqiured for devices with multiple processors.\nExample: STMicroelectronics::STM32H735IGK" |
| 225 | + "description": "Unique device name. Overrules default board device setting.\nA unique processor ID is required for devices with multiple processors.\nExample: STMicroelectronics::STM32H735IGK" |
| 226 | + }, |
| 227 | + "ProcessorNameType": { |
| 228 | + "title": "device:\nDocumentation: https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#device", |
| 229 | + "type": "string", |
| 230 | + "pattern": "^:[ -9;-~]+$", |
| 231 | + "description": "Unique processor ID.\nFormat :pname (see device name convention).\nExample: :cm0plus" |
226 | 232 | }, |
227 | 233 | "BoardType": { |
228 | 234 | "title": "board:\nDocumentation: https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#board", |
|
2367 | 2373 | "info": { "type": "string", "description": "Brief description of the image file." }, |
2368 | 2374 | "type": { "enum": [ "elf", "hex", "bin", "lib" ], "description": "Specifies an explicit image type." }, |
2369 | 2375 | "load": { "$ref": "#/definitions/TargetSetLoadType" }, |
2370 | | - "load-offset": { "type": "number", "description": "Offset applied to the binary content when loading the image file." } |
| 2376 | + "load-offset": { "type": "number", "description": "Offset applied to the binary content when loading the image file." }, |
| 2377 | + "device": { "$ref": "#/definitions/ProcessorNameType" } |
2371 | 2378 | }, |
2372 | 2379 | "additionalProperties": false, |
2373 | 2380 | "oneOf": [ |
2374 | | - { "required": ["project-context"], "not": {"required": ["image", "type"]} }, |
| 2381 | + { "required": ["project-context"], "not": {"required": ["image", "type", "device"]} }, |
2375 | 2382 | { "required": ["image"], "not": {"required": ["project-context"]} } |
2376 | 2383 | ] |
2377 | 2384 | }, |
|
0 commit comments