lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 849ba5cb was 849ba5cb, checked in by Martin Decky <martin@…>, 20 years ago |
|
build system: boot target
|
-
Property mode
set to
100644
|
|
File size:
437 bytes
|
| Line | |
|---|
| 1 | .PHONY: build clean
|
|---|
| 2 |
|
|---|
| 3 | build: boot.bin
|
|---|
| 4 | dd if=boot.bin of=../../../image.bin bs=512 conv=sync
|
|---|
| 5 | -cat ../../../kernel.bin >> ../../../image.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 | gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s
|
|---|
| 13 | as boot.s -o $@
|
|---|
| 14 | rm boot.s
|
|---|
| 15 |
|
|---|
| 16 | clean:
|
|---|
| 17 | -rm -f boot.o boot.bin ../../../image.bin
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.