Makefile revision 139103
150477Speter# $FreeBSD: head/sys/boot/i386/boot0/Makefile 139103 2004-12-21 08:47:35Z ru $
239973Srnordier
3128725SruPROG?=	boot0
4128725SruSTRIP=
5128725SruBINMODE=${NOBINMODE}
6139103SruNO_MAN=
7128725SruSRCS=	${PROG}.S
839980Srnordier
989240Sjhb# The default set of flags compiled into boot0.  This enables update (writing
1089240Sjhb# the modified boot0 back to disk after running so that the selection made is
1189240Sjhb# saved), packet mode (detect and use the BIOS EDD extensions if we try to
1289240Sjhb# boot past the 1024 cylinder liimt), and booting from all valid slices.
13134357SobrienBOOT_BOOT0_FLAGS?=	0x8f
1440524Srnordier
1589240Sjhb# The number of timer ticks to wait for a keypress before assuming the default
1689240Sjhb# selection.  Since there are 18.2 ticks per second, the default value of
1789240Sjhb# 0xb6 (182d) corresponds to 10 seconds.
1889240SjhbBOOT_BOOT0_TICKS?=	0xb6
1939973Srnordier
2089240Sjhb# The base address that we the boot0 code to to run it.  Don't change this
2189240Sjhb# unless you are glutton for punishment.
2289240SjhbBOOT_BOOT0_ORG?=	0x600
2389240Sjhb
24124179Sobrien# Comm settings for boot0sio.  0xE3 => 9600 8-N-1
25124179Sobrien# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
26124179Sobrien# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
27124179Sobrien# command line
28124179SobrienBOOT_BOOT0_COMCONSOLE_SPEED?=	0xE3
29124179Sobrien
30128722SruCFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
31128722Sru	-DTICKS=${BOOT_BOOT0_TICKS} \
32128722Sru	-DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
3339973Srnordier
34128651SobrienLDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary
35125621Sru
36128718Sru.include <bsd.prog.mk>
37