Makefile revision 134357
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 134357 2004-08-27 00:18:03Z obrien $
2
3PROG?=	boot0
4STRIP=
5BINMODE=${NOBINMODE}
6NOMAN=
7SRCS=	${PROG}.S
8
9# The default set of flags compiled into boot0.  This enables update (writing
10# the modified boot0 back to disk after running so that the selection made is
11# saved), packet mode (detect and use the BIOS EDD extensions if we try to
12# boot past the 1024 cylinder liimt), and booting from all valid slices.
13BOOT_BOOT0_FLAGS?=	0x8f
14
15# The number of timer ticks to wait for a keypress before assuming the default
16# selection.  Since there are 18.2 ticks per second, the default value of
17# 0xb6 (182d) corresponds to 10 seconds.
18BOOT_BOOT0_TICKS?=	0xb6
19
20# The base address that we the boot0 code to to run it.  Don't change this
21# unless you are glutton for punishment.
22BOOT_BOOT0_ORG?=	0x600
23
24# Comm settings for boot0sio.  0xE3 => 9600 8-N-1
25# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
26# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
27# command line
28BOOT_BOOT0_COMCONSOLE_SPEED?=	0xE3
29
30CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
31	-DTICKS=${BOOT_BOOT0_TICKS} \
32	-DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
33
34LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary
35
36.include <bsd.prog.mk>
37