Added vscode devcontainer, cpp include configuration and vscode tasks

This commit is contained in:
Sparchatus 2022-03-22 09:36:54 +00:00
parent ca52d1ed91
commit 070111da22
4 changed files with 62 additions and 0 deletions

5
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM achreto/barrelfish-aos:20.04-lts
RUN apt update && apt install -y vim
RUN adduser vscode --disabled-password

View 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
View File

@ -0,0 +1,13 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/include/**",
"${BFBUILD}/armv8/include/**"
]
}
],
"version": 4
}

24
.vscode/tasks.json vendored Normal file
View 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
}
}
]
}