lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since f3ebb64 was f3ebb64, checked in by Jakub Vana <jakub.vana@…>, 21 years ago |
|
IA-32 boot Makefile bugfix.
Previous version did not take 512B of boot sector code into account and produced wrong image.bin.
|
-
Property mode
set to
100644
|
|
File size:
441 bytes
|
| Line | |
|---|
| 1 | .PHONY: nothing build clean
|
|---|
| 2 |
|
|---|
| 3 | nothing:
|
|---|
| 4 |
|
|---|
| 5 | build: boot.bin
|
|---|
| 6 | dd if=boot.bin of=../../../src/image.bin bs=512 conv=sync
|
|---|
| 7 | -cat ../../../src/kernel.bin >>../../../src/image.bin
|
|---|
| 8 | dd if=/dev/zero of=../../../src/image.bin bs=1 seek=1474559 count=1
|
|---|
| 9 |
|
|---|
| 10 | boot.bin: boot.o
|
|---|
| 11 | ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
|
|---|
| 12 |
|
|---|
| 13 | boot.o: boot.S
|
|---|
| 14 | gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s
|
|---|
| 15 | as boot.s -o $@
|
|---|
| 16 | rm boot.s
|
|---|
| 17 |
|
|---|
| 18 | clean:
|
|---|
| 19 | -rm *.o *.bin
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.