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:
@@ -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 $<
|
||||
Reference in New Issue
Block a user