1 # $FreeBSD: src/sys/boot/i386/boot0/Makefile,v 1.17 2002/09/17 01:48:54 peter Exp $
2 # $DragonFly: src/sys/boot/pc32/boot0/Makefile,v 1.3 2003/11/10 06:08:34 dillon Exp $
12 # The default set of flags compiled into boot0. This enables update (writing
13 # the modified boot0 back to disk after running so that the selection made is
14 # saved), packet mode (detect and use the BIOS EDD extensions if we try to
15 # boot past the 1024 cylinder liimt), and booting from all valid slices.
16 BOOT_BOOT0_FLAGS?= 0xf
18 # The number of timer ticks to wait for a keypress before assuming the default
19 # selection. Since there are 18.2 ticks per second, the default value of
20 # 0xb6 (182d) corresponds to 10 seconds.
21 BOOT_BOOT0_TICKS?= 0xb6
23 # The base address that we the boot0 code to to run it. Don't change this
24 # unless you are glutton for punishment.
25 BOOT_BOOT0_ORG?= 0x600
28 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
29 objcopy -S -O binary boot0.out ${.TARGET}
32 ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \
33 --defsym TICKS=${BOOT_BOOT0_TICKS} ${.IMPSRC} -o ${.TARGET}
35 CLEANFILES+= boot0.out boot0.o
37 .include <bsd.prog.mk>