kernel32.bin is now written in C, make necessary modifications to Makefile, .gitignore, boot32.asm, etc to get this working

This commit is contained in:
2021-08-31 22:50:10 +01:00
parent 07ef9774c2
commit 1905f3babd
5 changed files with 81 additions and 3 deletions
+12 -2
View File
@@ -1,4 +1,8 @@
disk.img: boot.sector kernel.bin hello.bin print.bin hello.txt boot32.bin
CFLAGS = -m32 -nostdlib -fno-builtin -fno-exceptions -fno-leading-underscore -fno-pie
LDFLAGS =
disk.img: boot.sector kernel.bin hello.bin print.bin hello.txt boot32.bin kernel32.bin
dd if=/dev/zero of=disk.img count=43 bs=100k
dd if=boot.sector of=disk.img conv=notrunc
mount disk.img img.d
@@ -20,4 +24,10 @@ print.bin: print.asm
nasm $< -o $@
boot32.bin: boot32.asm
nasm $< -o $@
nasm $< -o $@
kernel32.bin: kernel32.ld kernel32.o
ld $(LDFLAGS) -T $< -o $@ kernel32.o
kernel32.o: kernel32.c
gcc $(CFLAGS) -o $@ -c $<