Hello, world! in linear framebuffer
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,6 +1,7 @@
|
||||
build:
|
||||
rm -f *.o
|
||||
x86_64-elf-gcc -c -I src src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections
|
||||
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
|
||||
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
|
||||
|
||||
limine/limine:
|
||||
@@ -25,5 +26,8 @@ build-iso: limine/limine build
|
||||
iso_root -o kernel.iso
|
||||
./limine/limine bios-install kernel.iso
|
||||
|
||||
run:
|
||||
qemu-system-x86_64 -cdrom kernel.iso
|
||||
|
||||
clean:
|
||||
rm -rf *.o kernel iso_root kernel.iso limine
|
||||
|
||||
Reference in New Issue
Block a user