49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
|
||
|
{
|
||
|
"name": "arm-none-eabi-cpp",
|
||
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||
|
"build": { "dockerfile": "Dockerfile" },
|
||
|
|
||
|
// Privileged container in order to access /dev
|
||
|
"privileged": true,
|
||
|
|
||
|
// Mount USB devices (debug probes, UART interfaces, ...)
|
||
|
"mounts": [
|
||
|
"source=/dev/bus/usb/,target=/dev/bus/usb/,type=bind"
|
||
|
],
|
||
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||
|
// "features": {},
|
||
|
|
||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||
|
// "forwardPorts": [],
|
||
|
|
||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||
|
// "postCreateCommand": "sudo apt update && sudo apt install -y openocd && sudo apt install -y gdb-multiarch",
|
||
|
|
||
|
// Configure tool-specific properties.
|
||
|
"customizations": {
|
||
|
"vscode": {
|
||
|
"extensions": [
|
||
|
"ms-vscode.cpptools",
|
||
|
"ms-vscode.cpptools-extension-pack",
|
||
|
"marus25.cortex-debug",
|
||
|
"zoma.vscode-auto-open-workspace"
|
||
|
],
|
||
|
// default settings, can be overwritten in .vscode/settings.conf
|
||
|
"settings": {
|
||
|
"terminal.integrated.defaultProfile.linux.shell": "/bin/bash",
|
||
|
"autoOpenWorkspace.enableAutoOpenIfSingleWorkspace": true,
|
||
|
"autoOpenWorkspace.enableAutoOpenAlwaysFirst": true,
|
||
|
"files.exclude": {
|
||
|
"**/.git": true,
|
||
|
"**/.repo": true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||
|
// "remoteUser": "root"
|
||
|
}
|