diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..0a74511 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM achreto/barrelfish-aos:20.04-lts + +RUN apt update && apt install -y vim + +RUN adduser vscode --disabled-password \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..14b64a4 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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", +} + diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..a5d448d --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,13 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "${workspaceFolder}/include/**", + "${BFBUILD}/armv8/include/**" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..056f65d --- /dev/null +++ b/.vscode/tasks.json @@ -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 + } + } + ] + } + \ No newline at end of file