First small step

This commit is contained in:
2026-08-25 16:34:51 +03:00
parent e63416a08b
commit 706e5b0127
5 changed files with 3428 additions and 2 deletions
+3
View File
@@ -137,3 +137,6 @@ dkms.conf
*.out *.out
*.app *.app
build/
nob
nob.old
-2
View File
@@ -1,2 +0,0 @@
# Simple-Kernel
+21
View File
@@ -0,0 +1,21 @@
#define NOB_IMPLEMENTATION
#include "nob.h"
#define BUILD_FOLDER "build/"
#define SRC_FOLDER "src/"
int main(int argc, char **argv) {
NOB_GO_REBUILD_URSELF(argc, argv);
if (!nob_mkdir_if_not_exists(BUILD_FOLDER))
return 1;
Nob_Cmd cmd = {0};
nob_cmd_append(&cmd, "cc", "-Wall", "-Wextra", "-o", BUILD_FOLDER "kernel", SRC_FOLDER "kernel.c");
if (!nob_cmd_run(&cmd))
return 1;
return 0;
}
+3398
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
#include "stdio.h"
int main() {
printf("Hello, world!\n");
return 0;
}