1,10 → 1,8 |
.PHONY: nothing build clean |
.PHONY: build clean |
|
nothing: |
|
build: boot.bin |
dd if=boot.bin of=../../../image.bin bs=512 conv=sync |
-cat ../../../kernel.bin >>../../../image.bin |
-cat ../../../kernel.bin >> ../../../image.bin |
dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1 |
|
boot.bin: boot.o |
11,9 → 9,9 |
ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@ |
|
boot.o: boot.S |
gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s |
gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s |
as boot.s -o $@ |
rm boot.s |
|
clean: |
-rm *.o *.bin |
-rm -f boot.o boot.bin ../../../image.bin |