source: mainline/arch/amd64/boot/Makefile@ 2c55af3

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2c55af3 was 36641a3, checked in by Ondrej Palkovsky <ondrap@…>, 20 years ago

Copied from ia32, bootloader can be the same.

  • Property mode set to 100644
File size: 441 bytes
Line 
1.PHONY: nothing build clean
2
3nothing:
4
5build: 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
10boot.bin: boot.o
11 ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
12
13boot.o: boot.S
14 gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s
15 as boot.s -o $@
16 rm boot.s
17
18clean:
19 -rm *.o *.bin
Note: See TracBrowser for help on using the repository browser.