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
32 changes: 30 additions & 2 deletions .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,24 @@ jobs:
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error

- name: Archive projmgr schemas
if: matrix.arch == 'amd64' && matrix.target == 'linux'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: projmgr-schemas
path: ./tools/projmgr/schemas
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error

- name: Archive projmgr templates
if: matrix.arch == 'amd64' && matrix.target == 'linux'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: projmgr-templates
path: ./tools/projmgr/templates
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error

build-swig:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
Expand Down Expand Up @@ -193,8 +211,18 @@ jobs:
run: |
mkdir -p tools/projmgr/distribution/bin tools/projmgr/distribution/lib tools/projmgr/distribution/doc tools/projmgr/distribution/etc
cp tools/projmgr/docs/LICENSE.txt tools/projmgr/distribution/
cp -r tools/projmgr/schemas/* tools/projmgr/distribution/etc/
cp -r tools/projmgr/templates/* tools/projmgr/distribution/etc/

- name: Download projmgr schemas
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: projmgr-schemas
path: tools/projmgr/distribution/etc/

- name: Download projmgr templates
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: projmgr-templates
path: tools/projmgr/distribution/etc/

- name: Download projmgr linux-amd64
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
Expand Down
13 changes: 10 additions & 3 deletions tools/projmgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ dump_cmake_project_version()

configure_file(src/ProductInfo.h.in ProductInfo.h)

file(DOWNLOAD
https://raw.githubusercontent.com/Open-CMSIS-Pack/debug-adapter-registry/refs/heads/main/registry/debug-adapters.yml
${CMAKE_CURRENT_SOURCE_DIR}/templates/debug-adapters.yml
# debug adapter registry
include(FetchContent)
FetchContent_Declare(
debug-adapter-registry
DOWNLOAD_EXTRACT_TIMESTAMP ON
URL https://github.com/Open-CMSIS-Pack/debug-adapter-registry/releases/download/v2.11.0/debug-adapter-registry.zip
URL_HASH SHA256=3b65ed965c85ff9665caca5da5f785ec081b7edf7f6a8a0f4512f90f65a00d75
)
FetchContent_MakeAvailable(debug-adapter-registry)
file(COPY ${debug-adapter-registry_SOURCE_DIR}/schemas/debug-adapters.schema.json DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/schemas)
file(COPY ${debug-adapter-registry_SOURCE_DIR}/registry/debug-adapters.yml DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/templates)

# rpc interface
include(FetchContent)
Expand Down
29 changes: 0 additions & 29 deletions tools/projmgr/schemas/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2400,35 +2400,6 @@
"title": "optimize:\nDocumentation: https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#load",
"description": "Specifies the load mode for the project output or image file.",
"enum": [ "image+symbols", "symbols", "image", "none" ]
},
"DebugAdaptersDescType": {
"title": "debug-adapters:\nDocumentation: https://open-cmsis-pack.github.io/cmsis-toolbox/build-operation/#debug-adapter-integration",
"description": "Contains the list of supported debug adapters.",
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/DebugAdapterDescType" }
},
"DebugAdapterDescType": {
"type": "object",
"properties": {
"name": { "type": "string", "description": "Debugger adapter name." },
"alias-name": { "type": "array", "items": { "type": "string"}, "description": "List of names (in input node or BSP) that map to this debug adapter." },
"template": { "type": "string", "description": "Used only by the VS Code CMSIS Solution extension for configuration." },
"gdbserver": { "type": "null", "description": "Add the gdbserver: node in the cbuild-run.yml file." },
"defaults": { "$ref": "#/definitions/DebugAdaptersDefaultsType" }
},
"additionalProperties": false,
"required": ["name"]
},
"DebugAdaptersDefaultsType": {
"description": "List of default options to use when not specified in the target-set: node.",
"type": "object",
"properties": {
"port": { "type": "number", "description": "Port number." },
"protocol": { "enum": [ "jtag", "swd" ], "description": "Selected debug protocol (jtag or swd)." },
"clock": { "type": "number", "description": "Selected debug clock speed (in Hz)." }
},
"additionalProperties": true
}
}
}
15 changes: 0 additions & 15 deletions tools/projmgr/schemas/debug-adapters.schema.json

This file was deleted.

Loading