feat: kernel is now elf

This commit is contained in:
karina
2026-04-26 09:32:07 +04:00
parent 1463402c6c
commit 6698c4ab3f
9 changed files with 137 additions and 42 deletions
+4 -3
View File
@@ -28,6 +28,7 @@ DISPLAY_FLAGS := if OS_NAME == "macos" {
}
ACCEL_INFO := if ACCEL == "" { "none (TCG)" } else { ACCEL }
RAM := "2G"
export BUILD_DIR := justfile_directory() + "/.build"
export TEMP_DIR := BUILD_DIR + "/temp"
@@ -64,14 +65,14 @@ _prep:
@mkfs.fat -F 32 {{IMG_FILE}} > /dev/null
@mmd -i {{IMG_FILE}} ::/EFI ::/EFI/BOOT
@mcopy -i {{IMG_FILE}} {{BOOT_BIN}} ::/EFI/BOOT/BOOTAA64.EFI
@mcopy -i {{IMG_FILE}} {{BUILD_DIR}}/Kernel/ksOSKernel.bin ::/ksOSKernel.bin
@mcopy -i {{IMG_FILE}} {{BUILD_DIR}}/Kernel/ksOSKernel.elf ::/ksOSKernel.elf
@run: _image
@echo "🚀 Launching (accel: {{ACCEL_INFO}})..."
qemu-system-aarch64 {{ACCEL}} \
-machine virt,acpi=off \
-cpu {{CPU}} \
-m 512M \
-m {{RAM}} \
-device ramfb \
{{DISPLAY_FLAGS}} \
-drive if=pflash,format=raw,readonly=on,file={{OVMF_ARM}} \
@@ -85,7 +86,7 @@ _prep:
qemu-system-aarch64 {{ACCEL}} \
-machine virt,acpi=off \
-cpu {{CPU}} \
-m 512M \
-m {{RAM}} \
-device ramfb \
{{DISPLAY_FLAGS}} \
-drive if=pflash,format=raw,readonly=on,file={{OVMF_ARM}} \