build(vscode): add separated tasks for building bootloader, kernel, drivers, userspace, and image

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-02-28 00:41:17 +00:00
parent ca8dc6429b
commit d3f6d51ed2
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

157
.vscode/tasks.json vendored
View File

@ -2,13 +2,160 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "launch-qemu", "label": "Build Bootloader",
"type": "shell", "type": "shell",
"command": "make -C ../ build && make -C ../ vscode_debug_only", "command": "make -C ../ build_bootloader",
"isBackground": true, "isBackground": false,
"problemMatcher": [],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"shell": {
"executable": "bash",
"args": [
"-c"
]
}
}
},
{
"label": "Build Kernel",
"type": "shell",
"command": "make -C ../ build_kernel",
"isBackground": false,
"dependsOn": [
"Build Bootloader"
],
"group": {
"kind": "build",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"shell": {
"executable": "bash",
"args": [
"-c"
]
}
}
},
{
"label": "Build Drivers",
"type": "shell",
"command": "make -C ../ build_drivers",
"isBackground": false,
"dependsOn": [
"Build Kernel"
],
"group": {
"kind": "build",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"shell": {
"executable": "bash",
"args": [
"-c"
]
}
}
},
{
"label": "Build Userspace",
"type": "shell",
"command": "make -C ../ build_userspace",
"isBackground": false,
"dependsOn": [
"Build Drivers"
],
"group": {
"kind": "build",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"shell": {
"executable": "bash",
"args": [
"-c"
]
}
}
},
{
"label": "Build Image",
"type": "shell",
"command": "make -C ../ build_image",
"isBackground": false,
"dependsOn": [
"Build Userspace"
],
"group": {
"kind": "build",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
"options": {
"shell": {
"executable": "bash",
"args": [
"-c"
]
}
}
},
{
"label": "launch-qemu",
"type": "shell",
"command": "make",
"args": [
"-C",
"../",
"vscode_debug_only"
],
"isBackground": true,
// "problemMatcher": "$tsc-watch",
"problemMatcher": [
{
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": "CR0 update",
}
}
],
"dependsOn": [
"Build Image"
],
"group": {
"kind": "test",
"isDefault": true "isDefault": true
}, },
"presentation": { "presentation": {
@ -25,4 +172,4 @@
} }
} }
] ]
} }