Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tools/projmgr/schemas/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,8 @@
},
"west": { "$ref": "#/definitions/WestProjectType" }
},
"additionalProperties": false
"additionalProperties": false,
"required": ["generated-by"]
},
"BuildPacksInfoType": {
"type": "array",
Expand Down Expand Up @@ -2524,7 +2525,7 @@
"debug-topology": { "$ref": "#/definitions/DebugTopologyType" }
},
"additionalProperties": false,
"required": ["output", "debugger"]
"required": ["generated-by", "output", "debugger"]
},
"TargetSetsType": {
"title": "target-set:\nDocumentation: https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#target-set",
Expand Down Expand Up @@ -2690,6 +2691,7 @@
"type": ["null", "object"],
"properties": {
"description": { "type": "string", "description": "Brief description of the MLOps configuration." },
"generated-by": { "type": "string", "description": "Tool name along with version information used to generate this file." },
"processor": {
"type": "object",
"description": "Processor information.",
Expand Down Expand Up @@ -2728,7 +2730,8 @@
"hardware": { "$ref": "#/definitions/MlopsRunDescType" },
"simulator": { "$ref": "#/definitions/MlopsRunDescType" }
},
"additionalProperties": false
"additionalProperties": false,
"required": ["generated-by"]
},
"MlopsOutputType": {
"type": "object",
Expand Down
1 change: 1 addition & 0 deletions tools/projmgr/src/ProjMgrCbuildMlops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ProjMgrCbuildMlops : public ProjMgrCbuildBase {

ProjMgrCbuildMlops::ProjMgrCbuildMlops(YAML::Node node,
const MlopsType& mlops, const std::string& directory) : m_directory(directory) {
SetNodeValue(node[YAML_GENERATED_BY], ORIGINAL_FILENAME + string(" version ") + VERSION_STRING);
SetNodeValue(node[YAML_DESCRIPTION], mlops.description);
SetProcessorNode(node[YAML_PROCESSOR], mlops.processor);
SetNpuNode(node[YAML_NPU], mlops.npu);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cbuild-mlops:
generated-by: csolution version 0.0.0
description: ML model with extended configuration
processor:
type: Cortex-M0
Expand Down
1 change: 1 addition & 0 deletions tools/projmgr/test/data/MLOps/ref/minimal.cbuild-mlops.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cbuild-mlops:
generated-by: csolution version 0.0.0
description: ML model with minimal configuration
processor:
type: Cortex-M0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cbuild-mlops:
generated-by: csolution version 0.0.0
description: ML model with minimal image-only configuration
processor:
type: Cortex-M0
Expand Down
Loading