-
Notifications
You must be signed in to change notification settings - Fork 57
/
common.schema.json
1262 lines (1261 loc) · 52.5 KB
/
common.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/2.2.1/tools/projmgr/schemas/common.schema.json",
"title": "CMSIS common",
"description": "common and reusable properties from other schemas",
"version": "2.2.1",
"definitions": {
"ArrayOfStrings": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "type": "string" }
},
"BuildContext": {
"type": "string",
"pattern": "^(((^[.][^.+\\s]*)|(^[+][^.+\\s]*))|((^[.][^.+\\s]*)[+][^.+\\s]*|(^[+][^.+\\s]*)[.][^.+\\s]*))$"
},
"BuildContextWithProjectName": {
"type": "string",
"pattern": "^([^.+\\s]+|[^.+\\s]*\\.[^.+\\s]+(\\+[^.+\\s]+)?|[^.+\\s]*\\+[^.+\\s]+(\\.[^.+\\s]+)?)$"
},
"ArrayOfBuildContext": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildContext" }
},
"BuildSetContextsType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildSetContextType" }
},
"BuildSetContextType": {
"type": "object",
"properties": {
"context": { "$ref": "#/definitions/BuildContextWithProjectName" }
},
"required": [ "context" ],
"additionalProperties": false
},
"ConditionIDType": {
"type": "string"
},
"ForType": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfBuildContext" },
{"$ref": "#/definitions/BuildContext" }
],
"description": "Include node for a list of [.<build-type>][+<target-type>]"
},
"NotForType": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfBuildContext" },
{"$ref": "#/definitions/BuildContext" }
],
"description": "Exclude node for a list of [.<build-type>][+<target-type>]"
},
"TypeListMutualExclusion": {
"oneOf": [
{
"required": ["for-context"],
"not": {"required": ["not-for-context"]}
},
{
"required": ["not-for-context"],
"not": {"required": ["for-context"]}
},
{
"allOf": [
{ "not": {"required": ["for-context"] }},
{ "not": {"required": ["not-for-context"]}}
]
}
]
},
"ForContext": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfBuildContext" },
{"$ref": "#/definitions/BuildContext" }
],
"description": "Include node for a list of [.<build-type>][+<target-type>]"
},
"NotForContext": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfBuildContext" },
{"$ref": "#/definitions/BuildContext" }
],
"description": "Exclude node for a list of [.<build-type>][+<target-type>]"
},
"CompilerType": {
"type": "string",
"pattern": "^(GCC|CLANG|AC6|IAR)(@(>=)?(\\d+\\.\\d+\\.\\d+((\\+|\\-)[\\w.+-]+)?))?$",
"description": "Selection of the toolchain used in the project (GCC, CLANG, AC6, IAR), optionally with version, for example AC6@6.16.0"
},
"ConsumesProvidesType": {
"oneOf": [
{"type": "string" },
{"type": "object", "additionalProperties": {"type": "number"}}
]
},
"VariablesType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": {"type": "object", "additionalProperties": {"type": "string"}}
},
"VersionType": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$",
"description": "A version consists of 3 mandatory and 2 optional sections: MAJOR.MINOR.PATCH[-Pre Release][+Build Metadata]"
},
"ArrayOfCompilerType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/CompilerType" }
},
"CompilersType": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfCompilerType" },
{"$ref": "#/definitions/CompilerType" }
],
"description": "Include node for a list of compilers"
},
"ArrayOfBuildContextWithProjectName": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildContextWithProjectName" }
},
"ContextMapType": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfBuildContextWithProjectName" },
{"$ref": "#/definitions/BuildContextWithProjectName" }
],
"description": "Remapping of build contexts"
},
"DeviceType": {
"type": "string",
"pattern": "^(([ -9;-~]+::)?[ -9;-~]+)?(:[ -9;-~]+)?$",
"description": "Unique device name optionally preceded by device vendor in the format [[vendor::]device][:processor]. A unique processor identifier is required in case of devices with multiple processors, even if the device is implicitly inferred from the board. If both board and device fields are present the given device overrules the device inferred from the board setting."
},
"BoardType": {
"type": "string",
"pattern": "^([ -9;-~]+::)?[ -9;-~]+(:[ -9;-~]+)?$",
"description": "Unique board name, optionally preceded by board vendor and succeeded by board revision string, in the format [vendor::]board[:revision]"
},
"OptimizeType": {
"enum": [ "size", "speed", "balanced", "none" ],
"description": "Generic optimize levels (size, speed, balanced, none) for code generation."
},
"DebugType": {
"enum": [ "on", "off" ],
"description": "Generic control for the generation of debug information (on, off)."
},
"WarningsType": {
"enum": [ "on", "off", "all" ],
"description": "Control warnings (on, off, all)."
},
"LanguageCType": {
"enum": [ "c90", "gnu90", "c99", "gnu99", "c11", "gnu11" ],
"description": "Language standard for C (c90, gnu90, c99, gnu99, c11, gnu11)."
},
"LanguageCppType": {
"enum": [ "c++98", "gnu++98", "c++03", "gnu++03", "c++11", "gnu++11", "c++14", "gnu++14", "c++17", "gnu++17", "c++20", "gnu++20" ],
"description": "Language standard for C++ (c++98, gnu++98, c++03, gnu++03, c++11, gnu++11, c++14, gnu++14, c++17, gnu++17, c++20, gnu++20)."
},
"ArrayOfArtifactType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/ArtifactType" }
},
"ArtifactType": {
"enum": [ "elf", "hex", "bin", "lib", "cmse-lib" ],
"description": "Output type: elf (default), hex, bin, lib or cmse-lib"
},
"ArtifactsType": {
"oneOf": [
{"$ref": "#/definitions/ArrayOfArtifactType" },
{"$ref": "#/definitions/ArtifactType" }
]
},
"OutputType": {
"type": "object",
"minProperties": 1,
"properties": {
"base-name": { "type": "string", "description": "Base name for all output files" },
"type": { "$ref": "#/definitions/ArtifactsType" }
},
"additionalProperties": false
},
"OutputDirectoriesType": {
"type": "object",
"properties": {
"intdir": { "type": "string" },
"outdir": { "type": "string" },
"cprjdir": { "type": "string" }
},
"additionalProperties": false
},
"BuildOutputDirectoriesType": {
"type": "object",
"properties": {
"rtedir": { "type": "string" },
"intdir": { "type": "string" },
"outdir": { "type": "string" },
"cprjdir": { "type": "string" }
},
"additionalProperties": false
},
"OutputFileType": {
"type": "object",
"properties": {
"file": { "type": "string" },
"type": { "$ref": "#/definitions/ArtifactsType" }
},
"additionalProperties": false,
"required": [ "file", "type" ]
},
"OutputFilesType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/OutputFileType" }
},
"DefinesType": {
"type": "array",
"description": "List of #define symbol settings for the code generation.",
"uniqueItems": true,
"minItems": 1,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"key": { "type": "string" },
"value": { "type": ["number", "string"], "minLength": 1 }
}
},
{
"type": "string",
"pattern": "^([^=:]+)$"
}
]
}
},
"UndefinesType": {
"type": "array",
"description": "List of #define symbol settings to be removed for the code generation.",
"uniqueItems": true,
"minItems": 1,
"items": { "type": "string" }
},
"AddpathsType": {
"type": "array",
"description": "List of include path settings for the code generation.",
"uniqueItems": true,
"minItems": 1,
"items": { "type": "string" }
},
"DelpathsType": {
"type": "array",
"description": "List of include path settings to be removed for the code generation.",
"uniqueItems": true,
"minItems": 1,
"items": { "type": "string" }
},
"MiscTypes": {
"oneOf": [
{
"type": "array",
"description": "List of miscellaneous literal tool-specific controls that are passed directly to the tools depending on the file type",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/MiscType" }
},
{ "$ref": "#/definitions/MiscType" }
]
},
"MiscType": {
"type": ["object", "null"],
"properties": {
"for-compiler": { "$ref": "#/definitions/CompilerType" },
"C": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of C flags" },
"CPP": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of CPP flags" },
"C-CPP": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of C & CPP flags" },
"ASM": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of ASM flags" },
"Link": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of Linker flags" },
"Link-C": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of Linker flags for pure C project" },
"Link-CPP": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of Linker flags for project with C++ files" },
"Library": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of Linker flags for libraries handling" },
"Lib": { "$ref": "#/definitions/ArrayOfStrings", "description": "List of Library Manager or Archiver flags" }
},
"additionalProperties": false
},
"TargetTypes": {
"type": "array",
"description": "Target type declaration list that allow to switch among different targets.",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/TargetType" }
},
"TargetType": {
"type": "object",
"properties": {
"type": {
"type": "string",
"pattern": "^([^.+]+)$",
"description": "Name of the target type."
},
"board": { "$ref": "#/definitions/BoardType" },
"device": { "$ref": "#/definitions/DeviceType" },
"processor": { "$ref": "#/definitions/ProcessorType" },
"compiler": { "$ref": "#/definitions/CompilerType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" },
"variables": { "$ref": "#/definitions/VariablesType" },
"context-map": { "$ref": "#/definitions/ContextMapType" }
},
"additionalProperties": false,
"required" : [ "type"]
},
"BuildTypes": {
"type": "array",
"description": "Build type declaration list that allow to switch among different build settings such as: Release, Debug, Test.",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildType" }
},
"BuildType": {
"type": "object",
"properties": {
"type": {
"type": "string",
"pattern": "^([^.+]+)$",
"description": "Name of build configuration type. (Debug | Test | Release)"
},
"processor": { "$ref": "#/definitions/ProcessorType" },
"compiler": { "$ref": "#/definitions/CompilerType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" },
"variables": { "$ref": "#/definitions/VariablesType" },
"context-map": { "$ref": "#/definitions/ContextMapType" }
},
"additionalProperties": false,
"required" : [ "type"]
},
"ProjectsType": {
"type": "array",
"description": "This section defines the collection of related projects",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/ProjectType" }
},
"ProjectType": {
"type": "object",
"properties": {
"project": {
"type": "string",
"pattern": "^.*[/]([^.+]*\\.cproject\\.(yml|yaml))$|^([^.+]+)\\.cproject\\.(yml|yaml)$",
"description": "Path to the valid project file"
},
"for-context": { "$ref": "#/definitions/ForContext" },
"not-for-context": { "$ref": "#/definitions/NotForContext" }
},
"additionalProperties": false,
"allOf": [
{ "$ref": "#/definitions/TypeListMutualExclusion"},
{ "required": [ "project" ] }
]
},
"ProcessorTrustzone": {
"enum": [ "secure", "non-secure", "off" ],
"description": "Select TrustZone mode: secure | non-secure | off"
},
"ProcessorFpu": {
"enum": [ "dp", "sp", "off" ],
"description": "Controls usage of FPU registers (S-Registers that are used for Helium and FPU hardware): dp (double precision) | sp (single precision) | off (disabled)"
},
"BuildProcessorFpu": {
"enum": [ "on", "dp", "sp", "off" ],
"description": "Controls usage of FPU registers (S-Registers that are used for Helium and FPU hardware): on (enabled) | dp (double precision) | sp (single precision) | off (disabled)"
},
"ProcessorDsp": {
"enum": [ "on", "off" ],
"description": "Controls usage of DSP: on (enabled) | off (disabled)"
},
"ProcessorMve": {
"enum": [ "fp", "int", "off" ],
"description": "Controls usage of M-Profile Vector Extension Instructions: fp (floating point and integer instructions) | int (integer instructions) | off (disabled)"
},
"ProcessorEndian": {
"enum": [ "little", "big" ],
"description": "Controls endianess: little | big"
},
"ProcessorBranchProtection": {
"enum": [ "bti", "bti-signret", "off" ],
"description": "Select Branch Protection mode: bti (branch target identification) | bit-signret (branch target identification and pointer authentication) | off (disabled)"
},
"ProcessorType": {
"type": ["object", "null"],
"description": "Processor specific settings",
"properties": {
"trustzone": { "$ref": "#/definitions/ProcessorTrustzone" },
"fpu": { "$ref": "#/definitions/ProcessorFpu" },
"dsp": { "$ref": "#/definitions/ProcessorDsp" },
"mve": { "$ref": "#/definitions/ProcessorMve" },
"endian": { "$ref": "#/definitions/ProcessorEndian" },
"branch-protection": { "$ref": "#/definitions/ProcessorBranchProtection" }
},
"additionalProperties": false
},
"BuildProcessorType": {
"type": ["object", "null"],
"description": "Processor specific settings",
"properties": {
"trustzone": { "$ref": "#/definitions/ProcessorTrustzone" },
"fpu": { "$ref": "#/definitions/BuildProcessorFpu" },
"dsp": { "$ref": "#/definitions/ProcessorDsp" },
"mve": { "$ref": "#/definitions/ProcessorMve" },
"endian": { "$ref": "#/definitions/ProcessorEndian" },
"branch-protection": { "$ref": "#/definitions/ProcessorBranchProtection" },
"core": {"type": "string", "description": "Processor core"}
},
"additionalProperties": false
},
"GroupsType": {
"type": "array",
"description": "List of source groups to be added to a project or layer.",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/GroupType" }
},
"GroupType": {
"type": "object",
"properties": {
"group": { "type": "string", "description": "Name of the group." },
"for-context": { "$ref": "#/definitions/ForContext" },
"not-for-context": { "$ref": "#/definitions/NotForContext" },
"for-compiler": { "$ref": "#/definitions/CompilersType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" },
"groups": { "$ref": "#/definitions/GroupsType" },
"files": { "$ref": "#/definitions/FilesType" }
},
"allOf": [
{ "$ref": "#/definitions/TypeListMutualExclusion" },
{ "anyOf": [
{"required" : ["files"]},
{"required" : ["groups"]}
]
}
],
"additionalProperties": false
},
"FilesType": {
"type": "array",
"description": "List of source files to be added to a project or layer.",
"uniqueItems": true,
"items": { "$ref": "#/definitions/FileType" }
},
"FileCategoryType": {
"enum": [ "doc", "header", "headerAsm", "headerC", "headerCpp", "headerLd", "include", "includeAsm", "includeC", "includeCpp", "includeLd", "library", "object", "source", "sourceC", "sourceCpp", "sourceAsm", "linkerScript", "utility", "image", "preIncludeGlobal", "preIncludeLocal","genSource", "genHeader", "genParams", "genAsset", "other" ],
"description": "File category types define the use of component files within the application. Typically, these files are added to the project and processed by the build tools."
},
"FileAttributeType": {
"enum": [ "config", "template" ],
"description": "The file attribute defines the special handling in the project when being used as configuration or template file."
},
"FileLanguageType": {
"enum": [ "asm", "c", "cpp", "c-cpp", "link" ],
"description": "File language attribute type defines the language for source, header and include file categories. Based on the language the information is used by language specific build tools."
},
"FileScopeType": {
"enum": [ "visible", "hidden", "public", "private" ],
"description": "File scope attribute type defines the visibility of header file and include path file categories. Based on the specified scope header files are visible or hidden and include paths are public or private."
},
"FileType": {
"type": "object",
"properties": {
"file": { "type": "string", "description": "File name along with the path." },
"category": { "$ref": "#/definitions/FileCategoryType" },
"attr": { "$ref": "#/definitions/FileAttributeType" },
"version": { "$ref": "#/definitions/VersionType" },
"for-context": { "$ref": "#/definitions/ForContext" },
"not-for-context": { "$ref": "#/definitions/NotForContext" },
"for-compiler": { "$ref": "#/definitions/CompilersType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" }
},
"allOf": [
{ "$ref": "#/definitions/TypeListMutualExclusion" },
{ "required": [ "file" ] }
],
"additionalProperties": false
},
"GeneratorsType": {
"type": "array",
"description": "Information for calling generators",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/GeneratorType" }
},
"GeneratorType": {
"description": "General generator info",
"type": "object",
"properties": {
"from-pack": { "$ref": "#/definitions/PackID" },
"generator": { "type": "string", "description": "Section for a specific generator" },
"path": { "type": "string", "description": "Path name for storing the files generated" },
"gpdsc": { "type": "string", "description": "File name of the *.GDPSC file that stores the information in path" },
"command": { "$ref": "#/definitions/CommandType" }
},
"required": [ "generator", "from-pack", "path", "gpdsc", "command" ]
},
"CommandType": {
"type": "object",
"description": "Section for invoking the generator on different Host operating systems",
"properties": {
"win": { "$ref": "#/definitions/HostSpecificCommand" },
"linux": { "$ref": "#/definitions/HostSpecificCommand" },
"mac": { "$ref": "#/definitions/HostSpecificCommand" },
"other": { "$ref": "#/definitions/HostSpecificCommand" }
}
},
"HostSpecificCommand": {
"type": "object",
"description": "Command for one of the supported host types (Windows, Linux, Mac or other)",
"properties": {
"file": {
"type": "string",
"description": "Path to the executable"
},
"arguments": {
"type": "array",
"items": { "type": "string" },
"description": "Arguments passed when executing the command"
}
}
},
"ComponentGeneratorType": {
"description": "Component specific generator info. Any field in this object overrides the corresponding value from the general GeneratorType",
"type": "object",
"properties": {
"id": { "type": "string", "description": "Generator identifier" },
"path": { "type": "string", "description": "Path name for storing the files generated" },
"from-pack": { "$ref": "#/definitions/PackID"},
"files": { "$ref": "#/definitions/FilesType" }
},
"required": [ "id" ]
},
"ComponentID": {
"type": "string",
"pattern": "(^[A-Za-z\\d][\\w+()'\\/\\- \\.]+$)|(^([A-Za-z\\d][A-Za-z\\d \\-]+::)?([A-Za-z\\d][\\w+()'\\/\\- \\.]+)(&[A-Za-z\\d][\\w+()'\\/\\- \\.]+)?(:[A-Za-z\\d][\\w+()'\\/\\- \\.]+)(:[A-Za-z\\d][\\w+():\\/\\- \\.]*)?(&[A-Za-z\\d][\\w+()'\\/\\- \\.]+)?(@(>=)?((0|[1-9]\\d*)\\.([\\d]+)(\\.([\\d]+))?(\\-((0|[1-9]\\d*|\\d*[a-zA-Z-][\\da-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][\\da-zA-Z-]*))*))?))?$)",
"description": "Name of the software component. It can be a free text or a component identifier in the format [Cvendor::] Cclass [&Cbundle] :Cgroup [:Csub] [&Cvariant] [@[>=]Cversion]"
},
"ComponentsType": {
"type": "array",
"description": "List of software components to be added in a project or layer.",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/ComponentType" }
},
"ComponentType": {
"type": "object",
"properties": {
"component": { "$ref": "#/definitions/ComponentID" },
"condition": { "$ref": "#/definitions/ConditionIDType" },
"from-pack": { "$ref": "#/definitions/PackID"},
"for-context": { "$ref": "#/definitions/ForContext" },
"not-for-context": { "$ref": "#/definitions/NotForContext" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" }
},
"allOf": [
{ "$ref": "#/definitions/TypeListMutualExclusion" },
{ "required": [ "component" ] }
],
"additionalProperties": false
},
"RteType": {
"type": ["object", "null"],
"description": "Allows to control the directory structure for RTE (run-time environment) files",
"properties": {
"base-dir": {
"type": "string",
"description": "Base directory for RTE files; default: $ProjectDir()$/RTE"
}
},
"additionalProperties": false
},
"GeneratorsOutputType": {
"type": ["object", "null"],
"description": "Allows to control the directory structure for generator output files",
"properties": {
"base-dir": {
"type": "string",
"description": "Base directory for unspecified generators; default: $ProjectDir()$/generated"
},
"options": { "$ref": "#/definitions/GeneratorOptionsType" }
},
"additionalProperties": false
},
"GeneratorOptionsType": {
"type": "array",
"description": "Specific generator options; allows explicit directory configuration for a generator",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/GeneratorOptionType" }
},
"GeneratorOptionType": {
"type": ["object", "null"],
"properties": {
"generator": {
"type": "string",
"description": "Identifier of the generator tool, specified with id in the generators element of the PDSC file"
},
"path": {
"type": "string",
"description": "Specifies the directory for generated files. Relative paths used the location of the yml file as base directory"
}
},
"additionalProperties": false,
"required": [ "generator" ]
},
"LayersType": {
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/LayerType" }
},
"LayerType": {
"type": "object",
"properties": {
"layer": {
"type": "string",
"description": "Path to the '*.clayer.yml' file that defines the layer"
},
"type": {
"type": "string",
"description": "Layer type for compatible layers matching"
},
"optional": {
"type": "boolean",
"description": "Set optional to 'false' to require the layer type when searching compatible layers; default: 'true'"
},
"for-context": { "$ref": "#/definitions/ForContext" },
"not-for-context": { "$ref": "#/definitions/NotForContext" }
},
"allOf": [
{ "$ref": "#/definitions/TypeListMutualExclusion" },
{ "anyOf": [
{ "required": ["layer"], "not": {"required": ["optional"]} },
{ "required": ["type"] }
]
}
],
"additionalProperties": false
},
"DefaultDescType": {
"type": "object",
"properties": {
"compiler": {
"$ref": "#/definitions/CompilerType"
},
"misc": { "$ref": "#/definitions/MiscTypes" }
},
"additionalProperties": false
},
"SolutionDescType": {
"type": "object",
"properties": {
"description": { "type": "string" },
"target-types": { "$ref": "#/definitions/TargetTypes" },
"build-types": { "$ref": "#/definitions/BuildTypes" },
"output-dirs": { "$ref": "#/definitions/OutputDirectoriesType" },
"packs": { "$ref": "#/definitions/PacksType" },
"projects": { "$ref": "#/definitions/ProjectsType" },
"processor": { "$ref": "#/definitions/ProcessorType" },
"compiler": { "$ref": "#/definitions/CompilerType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" },
"variables": { "$ref": "#/definitions/VariablesType" },
"created-by": {
"$ref": "#/definitions/CreatedInfoType",
"description": " The tool that creates this csolution project"
},
"created-for": {
"$ref": "#/definitions/CreatedInfoType",
"description": "The tool required to build this csolution project"
},
"cdefault": { "type": "null", "description": "Enable use of cdefault.yml file" },
"generators": { "$ref": "#/definitions/GeneratorsOutputType" }
},
"additionalProperties": false,
"required": [ "target-types", "projects" ]
},
"ProjectDescType": {
"type": ["object", "null"],
"properties": {
"description": { "type": "string" },
"packs": { "$ref": "#/definitions/PacksType" },
"output": { "$ref": "#/definitions/OutputType" },
"output-dirs": { "$ref": "#/definitions/OutputDirectoriesType" },
"board": { "$ref": "#/definitions/BoardType" },
"device": { "$ref": "#/definitions/DeviceType" },
"compiler": { "$ref": "#/definitions/CompilerType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"processor": { "$ref": "#/definitions/ProcessorType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" },
"groups": { "$ref": "#/definitions/GroupsType" },
"components": { "$ref": "#/definitions/ComponentsType" },
"layers": { "$ref": "#/definitions/LayersType" },
"setups": { "$ref": "#/definitions/SetupsType" },
"connections": { "$ref": "#/definitions/ConnectionsType" },
"linker": { "$ref": "#/definitions/LinkersType" },
"generators": { "$ref": "#/definitions/GeneratorsOutputType" },
"rte": { "$ref": "#/definitions/RteType" }
},
"additionalProperties": false
},
"BuildIdxDescType": {
"type": "object",
"properties": {
"generated-by": { "type": "string", "description": "Tool name along with version information used to generate this file" },
"csolution": { "type": "string", "description": "Path to csolution.yml file" },
"cprojects": { "$ref": "#/definitions/BuildProjectsType" },
"cbuilds": { "$ref": "#/definitions/BuildContextsType" }
},
"additionalProperties": false,
"required": ["generated-by", "csolution", "cprojects"]
},
"BuildProjectsType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildProjectType", "description": "Paths to cproject.yml files" }
},
"BuildProjectType": {
"type": "object",
"properties": {
"cproject": { "type": "string", "description": "Path to cproject.yml file" }
},
"additionalProperties": false,
"required": ["cproject"]
},
"BuildContextsType": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "$ref": "#/definitions/BuildContextType", "description": "List of context related build information" }
},
"BuildContextType": {
"type": "object",
"properties": {
"cbuild": { "type": "string", "description": "Path to <context>.cbuild.yml file" },
"project": { "type": "string", "description": "Project name" },
"configuration": { "$ref": "#/definitions/BuildContext" },
"depends-on": { "$ref": "#/definitions/ArrayOfBuildContextWithProjectName" }
},
"additionalProperties": false,
"required": ["cbuild", "project", "configuration"]
},
"BuildDescType": {
"description": "The lock info that describes the resolved state of contexts and also can be used as input for generators",
"type": "object",
"properties": {
"generated-by": {
"type": "string",
"description": "Tool name along with version information used to generate this application"
},
"current-generator": {
"type": "object",
"description": "What generator configuration to use",
"properties": {
"from-pack": { "$ref": "#/definitions/PackID" },
"id": { "type": "string" }
},
"additionalProperties": false,
"required": [ "id" ]
},
"solution": {
"type": "string",
"description": "Relative path to the csolution file for this context"
},
"project": {
"type": "string",
"description": "Relative path to the cproject file for this context"
},
"context": { "$ref": "#/definitions/BuildContextWithProjectName" },
"compiler": { "$ref": "#/definitions/CompilerType" },
"board": { "$ref": "#/definitions/BoardType" },
"board-pack": { "$ref": "#/definitions/PackID" },
"device": { "$ref": "#/definitions/DeviceType" },
"device-pack": { "$ref": "#/definitions/PackID" },
"processor": { "$ref": "#/definitions/BuildProcessorType" },
"packs": { "$ref": "#/definitions/BuildPacksType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"misc": { "$ref": "#/definitions/MiscType" },
"define": { "$ref": "#/definitions/DefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"output-dirs": { "$ref": "#/definitions/BuildOutputDirectoriesType" },
"output": { "$ref": "#/definitions/OutputFilesType" },
"components": { "$ref": "#/definitions/ResolvedComponentsType" },
"linker": { "$ref": "#/definitions/LinkerType" },
"groups": { "$ref": "#/definitions/GroupsType" },
"generators": { "$ref": "#/definitions/GeneratorsType" },
"constructed-files": {
"type": "array",
"items": { "$ref": "#/definitions/FileType" }
},
"licenses": {
"type": "array",
"items": { "$ref": "#/definitions/LicenseInfoType" }
}
},
"additionalProperties": false
},
"LayerDescType": {
"type": "object",
"description": "This section describes layer contents.",
"properties": {
"description": { "type": "string" },
"type": {
"type": "string",
"description": "Layer type for compatible layers matching"
},
"for-board": { "$ref": "#/definitions/BoardType" },
"for-device": { "$ref": "#/definitions/DeviceType" },
"packs": { "$ref": "#/definitions/PacksType" },
"board": { "$ref": "#/definitions/BoardType" },
"device": { "$ref": "#/definitions/DeviceType" },
"compiler": { "$ref": "#/definitions/CompilerType" },
"optimize": { "$ref": "#/definitions/OptimizeType" },
"debug": { "$ref": "#/definitions/DebugType" },
"warnings": { "$ref": "#/definitions/WarningsType" },
"language-C": { "$ref": "#/definitions/LanguageCType" },
"language-CPP": { "$ref": "#/definitions/LanguageCppType" },
"processor": { "$ref": "#/definitions/ProcessorType" },
"define": { "$ref": "#/definitions/DefinesType" },
"undefine": { "$ref": "#/definitions/UndefinesType" },
"add-path": { "$ref": "#/definitions/AddpathsType" },
"del-path": { "$ref": "#/definitions/DelpathsType" },
"misc": { "$ref": "#/definitions/MiscTypes" },
"groups": { "$ref": "#/definitions/GroupsType" },
"components": { "$ref": "#/definitions/ComponentsType" },
"connections": { "$ref": "#/definitions/ConnectionsType" },
"linker": { "$ref": "#/definitions/LinkersType" },
"generators": { "$ref": "#/definitions/GeneratorsOutputType" }
},
"additionalProperties": false
},
"LicenseInfoPackType": {
"type": "object",
"properties": {
"pack": { "$ref": "#/definitions/PackID" }
}
},
"LicenseInfoComponentType": {
"type": "object",
"properties": {
"component": { "type": "string" }
}
},
"LicenseInfoType": {
"type": "object",
"description": "License information about packs and components",
"properties": {
"license": {
"type": "string",
"description": "License SPDX name or title"
},
"license-agreement": {
"type": "string",
"description": "Path to license agreement file"
},
"packs": {
"type": "array",
"items": { "$ref": "#/definitions/LicenseInfoPackType" }
},
"components": {
"type": "array",
"description": "List of components or APIs component to license agreement file",
"items": { "$ref": "#/definitions/LicenseInfoComponentType" }
}
}
},
"BuildPackDescType": {
"type": "object",
"properties": {
"resolved-packs": { "$ref": "#/definitions/ResolvedPacksType" }
},
"additionalProperties": false,
"required": [ "resolved-packs" ]
},
"ResolvedPacksType": {
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/ResolvedPackType" }
},
"ResolvedPackType": {
"type": "object",
"properties": {
"resolved-pack": { "$ref": "#/definitions/PackID" },
"selected-by-pack": {
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/PackID" }
}
},
"additionalProperties": false,
"required": [ "resolved-pack" ]
},
"BuildPacksType": {
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/BuildPackType" }
},
"BuildPackType": {
"type": "object",
"properties": {
"pack": { "$ref": "#/definitions/PackID" },
"path": { "type": "string", "description": "Path to software pack" }
},
"required": [ "pack", "path" ],
"additionalProperties": false
},
"PacksType": {
"type": "array",
"uniqueItems": true,
"items": {
"oneOf": [
{"$ref": "#/definitions/PackType" },
{"$ref": "#/definitions/PackPathType" }
]
}
},
"PackID": {
"type": "string",
"pattern": "^([\\w .-]+)((::[\\w .*-]+)(@(>=)?(\\d+\\.\\d+\\.\\d+((\\+|\\-)[\\w.+-]+)?))?)?$",