Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
457 | decky | 1 | .PHONY: build clean |
1 | jermar | 2 | |
3 | build: boot.bin |
||
376 | jermar | 4 | dd if=boot.bin of=../../../image.bin bs=512 conv=sync |
457 | decky | 5 | -cat ../../../kernel.bin >> ../../../image.bin |
376 | jermar | 6 | dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1 |
1 | jermar | 7 | |
8 | boot.bin: boot.o |
||
457 | decky | 9 | $(LD) -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@ |
1 | jermar | 10 | |
11 | boot.o: boot.S |
||
457 | decky | 12 | $(CC) -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s |
13 | $(AS) boot.s -o $@ |
||
1 | jermar | 14 | rm boot.s |
15 | |||
16 | clean: |
||
457 | decky | 17 | -rm -f boot.o boot.bin ../../../image.bin |