-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevcontainer.json
69 lines (60 loc) · 1.92 KB
/
devcontainer.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
{
"name": "WCH-IC RISC-V GNU Toolchain",
// Build image locally from provided Dockerfile
/*"build": {
"dockerfile": "Dockerfile"
},*/
// Pull and use pre-built image from Docker Hub
"image": "islandc/wch-riscv-devcontainer",
// 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"
],
// Pre-configure settings and extensions
"customizations": {
"vscode": {
"settings": {
"[cmake]": {
"editor.tabSize": 8,
"editor.insertSpaces": false
},
"[makefile]": {
"editor.tabSize": 8,
"editor.insertSpaces": false
},
"files.associations": {
"*.c": "c",
"*.h": "c",
"*.inc": "c",
"*.s": "riscv",
"*.S": "riscv",
"*.asm": "riscv",
"*.ld": "linkerscript"
},
"editor.insertSpaces": true,
"editor.rulers": [80],
"editor.tabSize": 2,
"C_Cpp.default.compilerPath": "/opt/gcc-riscv-none-elf/bin/riscv-none-elf-gcc",
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"C_Cpp.default.intelliSenseMode": "linux-gcc-x86",
"cmake.configureOnOpen": true,
"cmake.languageSupport.dotnetPath": "/opt/dotnet/dotnet",
"cmake.languageSupport.enableFileAPI": true,
"cmake.options.statusBarVisibility": "visible",
"cmake.additionalKits": [ "/opt/devcontainer/cmake-tools-kits.json" ]
},
"extensions": [
"josetr.cmake-language-support-vscode",
"keroc.hex-fmt",
"ms-vscode.cpptools-extension-pack",
"ms-vscode.cmake-tools",
"ms-vscode.vscode-embedded-tools",
"trond-snekvik.gnu-mapfiles",
"zhwu95.riscv",
"ZixuanWang.linkerscript"
]
}
}
}