Rev 165 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 165 | Rev 376 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | .PHONY: nothing build clean |
1 | .PHONY: nothing build clean |
2 | 2 | ||
3 | nothing: |
3 | nothing: |
4 | 4 | ||
5 | build: boot.bin |
5 | build: boot.bin |
6 | dd if=boot.bin of=../../../src/image.bin bs=512 conv=sync |
6 | dd if=boot.bin of=../../../image.bin bs=512 conv=sync |
7 | -cat ../../../src/kernel.bin >>../../../src/image.bin |
7 | -cat ../../../kernel.bin >>../../../image.bin |
8 | dd if=/dev/zero of=../../../src/image.bin bs=1 seek=1474559 count=1 |
8 | dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1 |
9 | 9 | ||
10 | boot.bin: boot.o |
10 | boot.bin: boot.o |
11 | ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@ |
11 | ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@ |
12 | 12 | ||
13 | boot.o: boot.S |
13 | boot.o: boot.S |