source: mainline/arch/amd64/boot/Makefile@ 389f41e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 389f41e was 389f41e, checked in by Martin Decky <martin@…>, 20 years ago

new build system almost finished

  • Property mode set to 100644
File size: 445 bytes
Line 
1.PHONY: build clean
2
3build: 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
8boot.bin: boot.o
9 $(LD) -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
10
11boot.o: boot.S
12 $(CC) -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s
13 $(AS) boot.s -o $@
14 rm boot.s
15
16clean:
17 -rm -f boot.o boot.bin ../../../image.bin
Note: See TracBrowser for help on using the repository browser.