feat: main function

This commit is contained in:
Katharina 2026-07-04 18:33:06 +02:00
parent beb7fb38ae
commit ba608513e6
10 changed files with 151 additions and 57 deletions

3
run.sh
View file

@ -5,6 +5,9 @@ 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"
if [ ! -f "$SCRIPT_DIR/testenv/image_file" ]; then
truncate -s 64M "$SCRIPT_DIR/testenv/image_file"
fi
cd "$SCRIPT_DIR/testenv" || exit 1
CPU="-cpu Opteron_G1-v1,pdpe1gb=on"