Rev 534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 628 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | .PHONY: build clean |
1 | .PHONY: build clean |
2 | 2 | ||
3 | build: boot.bin |
3 | build: grub.img.gz |
4 | dd if=boot.bin of=../../../image.bin bs=512 conv=sync |
4 | gunzip -c grub.img.gz > ../../../image.bin |
5 | -cat ../../../kernel.bin >> ../../../image.bin |
5 | e2cp ../../../kernel.bin ../../../image.bin:/boot/kernel.bin |
6 | dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1 |
- | |
7 | - | ||
8 | boot.bin: boot.o |
- | |
9 | $(LD) -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@ |
- | |
10 | - | ||
11 | boot.o: boot.S |
- | |
12 | $(CC) -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s |
- | |
13 | $(AS) boot.s -o $@ |
- | |
14 | rm boot.s |
- | |
15 | 6 | ||
16 | clean: |
7 | clean: |
17 | -rm -f boot.o boot.bin ../../../image.bin |
8 | -rm -f ../../../image.bin |