Added vscode devcontainer, cpp include configuration and vscode tasks
This commit is contained in:
parent
ca52d1ed91
commit
070111da22
5
.devcontainer/Dockerfile
Normal file
5
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM achreto/barrelfish-aos:20.04-lts
|
||||
|
||||
RUN apt update && apt install -y vim
|
||||
|
||||
RUN adduser vscode --disabled-password
|
||||
20
.devcontainer/devcontainer.json
Normal file
20
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "AOS Barrelfish",
|
||||
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
},
|
||||
|
||||
"containerEnv": {
|
||||
"BFAOS": "${containerWorkspaceFolder}",
|
||||
"BFBUILD": "${containerWorkspaceFolder}/build",
|
||||
},
|
||||
|
||||
"extensions": [
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-vscode.cpptools-extension-pack",
|
||||
],
|
||||
|
||||
"remoteUser": "vscode",
|
||||
}
|
||||
|
||||
13
.vscode/c_cpp_properties.json
vendored
Normal file
13
.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"${workspaceFolder}/include/**",
|
||||
"${BFBUILD}/armv8/include/**"
|
||||
]
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
24
.vscode/tasks.json
vendored
Normal file
24
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Initialize Build Directory",
|
||||
"type": "shell",
|
||||
"command": "mkdir -p ${BFBUILD} && cd build && ${BFAOS}/hake/hake.sh -s ${BFAOS} && make -j7 QEMU",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build and Run QEMU",
|
||||
"type": "shell",
|
||||
"command": "cd build && make qemu_a57",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user