Fully synchronize sys/boot from FreeBSD-5.x, but add / to the module path
[dragonfly.git] / sys / boot / pc32 / boot0 / Makefile
CommitLineData
5ee58eed
MD
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 $
984263bc
MD
3
4PROG= boot0
5NOMAN=
6STRIP=
7BINDIR?= /boot
8BINMODE= 444
9
10M4?= m4
11
5ee58eed
MD
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.
16BOOT_BOOT0_FLAGS?= 0xf
984263bc 17
5ee58eed
MD
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.
21BOOT_BOOT0_TICKS?= 0xb6
22
23# The base address that we the boot0 code to to run it. Don't change this
24# unless you are glutton for punishment.
25BOOT_BOOT0_ORG?= 0x600
984263bc
MD
26
27boot0: boot0.o
5ee58eed 28 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o boot0.out boot0.o
984263bc 29 objcopy -S -O binary boot0.out ${.TARGET}
984263bc
MD
30
31boot0.o: boot0.s
5ee58eed
MD
32 ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \
33 --defsym TICKS=${BOOT_BOOT0_TICKS} ${.IMPSRC} -o ${.TARGET}
984263bc
MD
34
35CLEANFILES+= boot0.out boot0.o
36
37.include <bsd.prog.mk>