feat: initial

This commit is contained in:
Katharina 2026-06-26 21:17:31 +02:00
commit 92d8a91be4
20 changed files with 1058 additions and 0 deletions

16
run.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
bear --output "$SCRIPT_DIR/compile_commands.json" -- make -C "$SCRIPT_DIR/kernel" all || exit 1
mkdir -p "$SCRIPT_DIR/testenv/dist"
cp "$SCRIPT_DIR/kernel/output/kernel.iso" "$SCRIPT_DIR/testenv/dist/kernel.iso"
cd "$SCRIPT_DIR/testenv" || exit 1
CPU="-cpu Opteron_G1-v1,pdpe1gb=on"
if [ "$1" = "debug" ]; then
qemu-system-x86_64 -nodefaults -readconfig qemuConfig.cfg $CPU -s -S -daemonize
else
qemu-system-x86_64 -nodefaults -readconfig qemuConfig.cfg $CPU
fi