Makefile revision 128649
150477Speter# $FreeBSD: head/sys/boot/i386/boot0/Makefile 128649 2004-04-25 19:50:20Z obrien $
239973Srnordier
3128649SobrienPROG=	${BOOT}
4125621SruINTERNALPROG=
5125537SruFILES=	${BOOT}
6125621SruNOMAN=
7125621SruSRCS=	${BOOT}.s
839980Srnordier
9125537SruBOOT?=	boot0
1039973Srnordier
1189240Sjhb# The default set of flags compiled into boot0.  This enables update (writing
1289240Sjhb# the modified boot0 back to disk after running so that the selection made is
1389240Sjhb# saved), packet mode (detect and use the BIOS EDD extensions if we try to
1489240Sjhb# boot past the 1024 cylinder liimt), and booting from all valid slices.
1589240SjhbBOOT_BOOT0_FLAGS?=	0xf
1640524Srnordier
1789240Sjhb# The number of timer ticks to wait for a keypress before assuming the default
1889240Sjhb# selection.  Since there are 18.2 ticks per second, the default value of
1989240Sjhb# 0xb6 (182d) corresponds to 10 seconds.
2089240SjhbBOOT_BOOT0_TICKS?=	0xb6
2139973Srnordier
2289240Sjhb# The base address that we the boot0 code to to run it.  Don't change this
2389240Sjhb# unless you are glutton for punishment.
2489240SjhbBOOT_BOOT0_ORG?=	0x600
2589240Sjhb
26124179Sobrien# Comm settings for boot0sio.  0xE3 => 9600 8-N-1
27124179Sobrien# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
28124179Sobrien# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
29124179Sobrien# command line
30124179SobrienBOOT_BOOT0_COMCONSOLE_SPEED?=	0xE3
31124179Sobrien
32125537SruAFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \
33125537Sru	--defsym TICKS=${BOOT_BOOT0_TICKS} \
34125537Sru	--defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
3539973Srnordier
36128649SobrienLDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S -Wl,--oformat -Wl,binary
37125621Sru
3839973Srnordier.include <bsd.prog.mk>
39