mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
Initial commit
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"cosmosos.cosmos-vscode",
|
||||
"ms-dotnettools.csharp",
|
||||
"ms-dotnettools.csdevkit",
|
||||
"ms-vscode.cpptools"
|
||||
]
|
||||
}
|
||||
Vendored
+90
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug x64 Kernel",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "gdb",
|
||||
"targetArchitecture": "x64",
|
||||
"program": "${workspaceFolder}/output-x64/RemSox.elf",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"miDebuggerServerAddress": "localhost:1234",
|
||||
"preLaunchTask": "Debug QEMU x64",
|
||||
"postDebugTask": "Stop QEMU x64",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set disassembly flavor",
|
||||
"text": "-gdb-set disassembly-flavor intel",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set pagination off",
|
||||
"text": "set pagination off",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"launchCompleteCommand": "None"
|
||||
},
|
||||
{
|
||||
"name": "Debug ARM64 Kernel",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "gdb-multiarch",
|
||||
"targetArchitecture": "arm64",
|
||||
"program": "${workspaceFolder}/output-arm64/RemSox.elf",
|
||||
"args": [],
|
||||
"stopAtEntry": true,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"miDebuggerServerAddress": "localhost:1234",
|
||||
"preLaunchTask": "Debug QEMU ARM64",
|
||||
"postDebugTask": "Stop QEMU ARM64",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set pagination off",
|
||||
"text": "set pagination off",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set step mode",
|
||||
"text": "set step-mode on",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set architecture",
|
||||
"text": "set architecture aarch64",
|
||||
"ignoreFailures": false
|
||||
},
|
||||
{
|
||||
"description": "Set target endian",
|
||||
"text": "set endian little",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"launchCompleteCommand": "None"
|
||||
},
|
||||
{
|
||||
"name": "Cosmos: Debug Kernel",
|
||||
"type": "cosmos-debug",
|
||||
"request": "launch"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/bin": true,
|
||||
"**/obj": true
|
||||
},
|
||||
"files.associations": {
|
||||
"limine.conf": "ini"
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"dotnet.defaultSolution": "disable"
|
||||
}
|
||||
Vendored
+217
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build x64",
|
||||
"type": "shell",
|
||||
"command": "dotnet",
|
||||
"args": [
|
||||
"publish",
|
||||
"-c", "Debug",
|
||||
"-r", "linux-x64",
|
||||
"-o", "${workspaceFolder}/output-x64",
|
||||
"--verbosity", "minimal"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": ["$msCompile"],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build ARM64",
|
||||
"type": "shell",
|
||||
"command": "dotnet",
|
||||
"args": [
|
||||
"publish",
|
||||
"-c", "Debug",
|
||||
"-r", "linux-arm64",
|
||||
"-o", "${workspaceFolder}/output-arm64",
|
||||
"--verbosity", "minimal"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": ["$msCompile"],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build Release x64",
|
||||
"type": "shell",
|
||||
"command": "dotnet",
|
||||
"args": [
|
||||
"publish",
|
||||
"-c", "Release",
|
||||
"-r", "linux-x64",
|
||||
"-o", "${workspaceFolder}/output-x64",
|
||||
"--verbosity", "minimal"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": ["$msCompile"],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build Release ARM64",
|
||||
"type": "shell",
|
||||
"command": "dotnet",
|
||||
"args": [
|
||||
"publish",
|
||||
"-c", "Release",
|
||||
"-r", "linux-arm64",
|
||||
"-o", "${workspaceFolder}/output-arm64",
|
||||
"--verbosity", "minimal"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": ["$msCompile"],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Run QEMU x64",
|
||||
"type": "shell",
|
||||
"dependsOn": "Build x64",
|
||||
"command": "qemu-system-x86_64",
|
||||
"args": [
|
||||
"-M", "q35",
|
||||
"-cpu", "max",
|
||||
"-m", "512M",
|
||||
"-serial", "stdio",
|
||||
"-cdrom", "${workspaceFolder}/output-x64/RemSox.iso",
|
||||
"-vga", "std",
|
||||
"-no-reboot",
|
||||
"-no-shutdown"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Run QEMU ARM64",
|
||||
"type": "shell",
|
||||
"dependsOn": "Build ARM64",
|
||||
"command": "qemu-system-aarch64",
|
||||
"args": [
|
||||
"-M", "virt",
|
||||
"-cpu", "cortex-a72",
|
||||
"-m", "1G",
|
||||
"-bios", "/usr/share/AAVMF/AAVMF_CODE.fd",
|
||||
"-drive", "if=none,id=cd,file=${workspaceFolder}/output-arm64/RemSox.iso",
|
||||
"-device", "virtio-scsi-pci",
|
||||
"-device", "scsi-cd,drive=cd,bootindex=0",
|
||||
"-device", "virtio-keyboard-device",
|
||||
"-device", "ramfb",
|
||||
"-serial", "stdio"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Debug QEMU x64",
|
||||
"dependsOn": "Build x64",
|
||||
"dependsOrder": "sequence",
|
||||
"type": "shell",
|
||||
"command": "bash",
|
||||
"args": [
|
||||
"-c",
|
||||
"qemu-system-x86_64 -M q35 -cpu max -m 512M -serial stdio -cdrom ${workspaceFolder}/output-x64/RemSox.iso -vga std -s -S -no-reboot -no-shutdown & sleep 1 && echo QEMU-DEBUG-READY && wait"
|
||||
],
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "qemu-debug",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "^qemu",
|
||||
"endsPattern": "QEMU-DEBUG-READY"
|
||||
},
|
||||
"pattern": { "regexp": ".*" }
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Debug QEMU ARM64",
|
||||
"dependsOn": "Build ARM64",
|
||||
"dependsOrder": "sequence",
|
||||
"type": "shell",
|
||||
"command": "bash",
|
||||
"args": [
|
||||
"-c",
|
||||
"qemu-system-aarch64 -M virt -cpu cortex-a72 -m 1G -bios /usr/share/AAVMF/AAVMF_CODE.fd -drive if=none,id=cd,file=${workspaceFolder}/output-arm64/RemSox.iso -device virtio-scsi-pci -device scsi-cd,drive=cd,bootindex=0 -device virtio-keyboard-device -device ramfb -serial stdio -s -S & sleep 1 && echo QEMU-ARM64-DEBUG-READY && wait"
|
||||
],
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
"owner": "qemu-arm64-debug",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "^qemu",
|
||||
"endsPattern": "QEMU-ARM64-DEBUG-READY"
|
||||
},
|
||||
"pattern": { "regexp": ".*" }
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "dedicated"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Stop QEMU x64",
|
||||
"type": "shell",
|
||||
"command": "pkill",
|
||||
"args": ["-f", "qemu-system-x86_64.*RemSox"],
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "never"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Stop QEMU ARM64",
|
||||
"type": "shell",
|
||||
"command": "pkill",
|
||||
"args": ["-f", "qemu-system-aarch64.*RemSox"],
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "never"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Check Tools",
|
||||
"type": "shell",
|
||||
"command": "cosmos",
|
||||
"args": ["check"],
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Clean Build",
|
||||
"type": "shell",
|
||||
"command": "rm",
|
||||
"args": ["-rf", "${workspaceFolder}/output-x64", "${workspaceFolder}/output-arm64", "${workspaceFolder}/bin", "${workspaceFolder}/obj"],
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"reveal": "silent"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user