Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
add tasks for building UHK 80 firmwares
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Nov 9, 2024
1 parent d833820 commit fa06f73
Showing 1 changed file with 186 additions and 3 deletions.
189 changes: 186 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,198 @@
"label": "Build UHK 60 v2 firmware",
"type": "shell",
"command": "make",
"args": ["${command:cpptools.activeConfigName}"],
"args": [
"${command:cpptools.activeConfigName}"
],
"options": {
"cwd": "${workspaceFolder}/right/uhk60v2"
},
"problemMatcher": ["$gcc"],
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Generate UHK versions",
"type": "shell",
"command": "node",
"args": [
"scripts/generate-versions.mjs"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [],
"group": {
"kind": "none",
"isDefault": true
}
},
{
"label": "West update",
"group": {
"kind": "none",
"isDefault": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"type": "process",
"command": "west",
"args": [
"update"
]
},
{
"label": "West patch",
"group": {
"kind": "none",
"isDefault": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"type": "process",
"command": "west",
"args": [
"patch"
]
},
{
"label": "Build UHK 80 left firmware",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"type": "process",
"command": "west",
"args": [
"build",
"--build-dir",
"${cwd}/device/build/uhk-80-left",
"${cwd}/device",
"${input:pristineBuild}",
"--board",
"uhk-80-left",
"--no-sysbuild",
"--",
"-DNCS_TOOLCHAIN_VERSION=NONE",
"-DCONF_FILE=${cwd}/device/prj.conf",
"-DEXTRA_CONF_FILE=${cwd}/device/prj.conf.overlays/nrf_shared.conf;${cwd}/device/prj.conf.overlays/c2usb.conf;${cwd}/device/prj.conf.overlays/uhk-80.conf",
"-DBOARD_ROOT=${cwd}",
"-Dmcuboot_OVERLAY_CONFIG=${cwd}/device/child_image/mcuboot.conf;${cwd}/device/child_image/uhk-80-left.mcuboot.conf"
],
"dependsOrder": "sequence",
"dependsOn": [
"West update",
"West patch",
"Generate UHK versions"
],
"problemMatcher": [
"$gcc"
]
},
{
"label": "Build UHK 80 right firmware",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"type": "process",
"command": "west",
"args": [
"build",
"--build-dir",
"${cwd}/device/build/uhk-80-right",
"${cwd}/device",
"${input:pristineBuild}",
"--board",
"uhk-80-right",
"--no-sysbuild",
"--",
"-DNCS_TOOLCHAIN_VERSION=NONE",
"-DCONF_FILE=${cwd}/device/prj.conf",
"-DEXTRA_CONF_FILE=${cwd}/device/prj.conf.overlays/nrf_shared.conf;${cwd}/device/prj.conf.overlays/c2usb.conf;${cwd}/device/prj.conf.overlays/uhk-80.conf;${cwd}/device/prj.conf.overlays/ble-hid.conf",
"-DBOARD_ROOT=${cwd}",
"-Dmcuboot_OVERLAY_CONFIG=${cwd}/device/child_image/mcuboot.conf;${cwd}/device/child_image/uhk-80-right.mcuboot.conf"
],
"dependsOrder": "sequence",
"dependsOn": [
"West update",
"West patch",
"Generate UHK versions"
],
"problemMatcher": [
"$gcc"
]
},
{
"label": "Build UHK dongle firmware",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"type": "process",
"command": "west",
"args": [
"build",
"--build-dir",
"${cwd}/device/build/uhk-dongle",
"${cwd}/device",
"${input:pristineBuild}",
"--board",
"uhk-dongle",
"--no-sysbuild",
"--",
"-DNCS_TOOLCHAIN_VERSION=NONE",
"-DCONF_FILE=${cwd}/device/prj.conf",
"-DEXTRA_CONF_FILE=${cwd}/device/prj.conf.overlays/nrf_shared.conf;${cwd}/device/prj.conf.overlays/c2usb.conf",
"-DBOARD_ROOT=${cwd}",
"-Dmcuboot_OVERLAY_CONFIG=${cwd}/device/child_image/mcuboot.conf;${cwd}/device/child_image/uhk-dongle.mcuboot.conf"
],
"dependsOrder": "sequence",
"dependsOn": [
"West update",
"West patch",
"Generate UHK versions"
],
"problemMatcher": [
"$gcc"
]
},
{
"label": "Build all UHK 80 firmwares",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"Build UHK 80 left firmware"
]
}
],
"inputs": [
{
"type": "pickString",
"id": "pristineBuild",
"description": "Do you want a pristine build?",
"options": [
"--pristine",
""
],
"default": ""
}
]
}
}

0 comments on commit fa06f73

Please sign in to comment.