Portable printf added

This commit is contained in:
2025-12-21 15:34:45 +01:00
parent b41b6e2369
commit ef5f658a62
7 changed files with 1049 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
build:
rm -f *.o
x86_64-elf-gcc -c -I src src/term.c src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections -mcmodel=kernel
x86_64-elf-gcc -c -I src src/io/term.c src/io/printf.c src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections -mcmodel=kernel
objcopy -O elf64-x86-64 -B i386 -I binary zap-light16.psf zap-light16.o
x86_64-elf-ld -o kernel -T linker.ld *.o
@@ -26,7 +26,7 @@ build-iso: limine/limine build
iso_root -o kernel.iso
./limine/limine bios-install kernel.iso
run:
run: build-iso
qemu-system-x86_64 -cdrom kernel.iso
clean: