aboutsummaryrefslogtreecommitdiff
path: root/CMakePresets.json
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-15 17:13:12 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-15 17:13:12 +0100
commit7b9482ae637126ac9337876e60f519b493437711 (patch)
tree6fc71a253c8b0325d303bd34c95b564ba536ed14 /CMakePresets.json
parent116f9332a206767c45095950f09f7c7447b561cf (diff)
parenta9eeec745e29d89afd48ee43d09432eb6fc35be7 (diff)
downloadteachos-7b9482ae637126ac9337876e60f519b493437711.tar.xz
teachos-7b9482ae637126ac9337876e60f519b493437711.zip
os: rework kernel architecture
Rework the code structure and architecture of the kernel by separating platform-dependent and platform-independent code more cleanly. As of this patchset, full feature parity has not been achieved. Nonetheless, a sufficient subset of functionality has been ported to the new architecture to demonstrate the feasibility of the new structure.
Diffstat (limited to 'CMakePresets.json')
-rw-r--r--CMakePresets.json25
1 files changed, 18 insertions, 7 deletions
diff --git a/CMakePresets.json b/CMakePresets.json
index b01208a..fd88d3c 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -2,25 +2,36 @@
"version": 6,
"configurePresets": [
{
- "name": "default",
+ "name": "base",
+ "hidden": true,
"binaryDir": "${sourceDir}/build",
"generator": "Ninja Multi-Config",
- "toolchainFile": "${workspaceFolder}/cmake/Platforms/x86_64.cmake",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;MinSizeRel",
- "CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
+ "CMAKE_EXPORT_COMPILE_COMMANDS": true,
+ "CMAKE_VERIFY_INTERFACE_HEADER_SETS": true
+ }
+ },
+ {
+ "name": "x86_64",
+ "inherits": "base",
+ "toolchainFile": "cmake/Platforms/x86_64.cmake",
+ "cacheVariables": {
+ "TEACHOS_PLATFORM_FRAME_SIZE": "4096",
+ "TEACHOS_PLATFORM_PAGE_SIZE": "4096",
+ "TEACHOS_PLATFORM_PAGING_LEVELS": "4"
}
}
],
"buildPresets": [
{
- "name": "debug",
- "configurePreset": "default",
+ "name": "x86_64-dbg",
+ "configurePreset": "x86_64",
"configuration": "Debug"
},
{
- "name": "release",
- "configurePreset": "default",
+ "name": "x86_64-rel",
+ "configurePreset": "x86_64",
"configuration": "MinSizeRel"
}
]