Rev 84 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 84 | Rev 85 | ||
---|---|---|---|
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=../../../src/image.bin bs=512 conv=sync |
7 | -cat ../../../src/kernel.bin >>../../../src/image.bin |
7 | -cat ../../../src/kernel.bin >>../../../src/image.bin |
8 | dd if=/dev/zero of=../../../src/image.bin bs=1 seek=$(KERNEL_SIZE) count=`expr 1474560 - $(KERNEL_SIZE)` |
8 | dd if=/dev/zero of=../../../src/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 |
14 | gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s |
14 | gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s |
15 | as boot.s -o $@ |
15 | as boot.s -o $@ |
16 | rm boot.s |
16 | rm boot.s |
17 | 17 | ||
18 | clean: |
18 | clean: |
19 | -rm *.o *.bin |
19 | -rm *.o *.bin |
20 | 20 |