11 # The default set of flags compiled into boot0. This enables update (writing
12 # the modified boot0 back to disk after running so that the selection made is
13 # saved), packet mode (detect and use the BIOS EDD extensions if we try to
14 # boot past the 1024 cylinder liimt), and booting from all valid slices.
15 BOOT_BOOT0_FLAGS?= 0xf
17 # The number of timer ticks to wait for a keypress before assuming the default
18 # selection. Since there are 18.2 ticks per second, the default value of
19 # 0xb6 (182d) corresponds to 10 seconds.
20 BOOT_BOOT0_TICKS?= 0xb6
22 # The base address that we the boot0 code to to run it. Don't change this
23 # unless you are glutton for punishment.
24 BOOT_BOOT0_ORG?= 0x600
27 .if ${OBJFORMAT} == aout
28 ${LD} -N -s -T ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
29 dd if=boot0.out of=${.TARGET} ibs=32 skip=1
31 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
32 objcopy -S -O binary boot0.out ${.TARGET}
36 ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \
37 --defsym TICKS=${BOOT_BOOT0_TICKS} ${.IMPSRC} -o ${.TARGET}
39 CLEANFILES+= boot0.out boot0.o
41 .include <bsd.prog.mk>