Makefile revision 125621
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125621 2004-02-09 14:11:58Z ru $
2
3PROG=	${BOOT}.out
4INTERNALPROG=
5FILES=	${BOOT}
6NOMAN=
7SRCS=	${BOOT}.s
8CLEANFILES= ${BOOT}
9
10BOOT?=	boot0
11
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
17
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
26
27# Comm settings for boot0sio.  0xE3 => 9600 8-N-1
28# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
29# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
30# command line
31BOOT_BOOT0_COMCONSOLE_SPEED?=	0xE3
32
33AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \
34	--defsym TICKS=${BOOT_BOOT0_TICKS} \
35	--defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
36
37LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG}
38
39${BOOT}: ${BOOT}.out
40	objcopy -S -O binary ${BOOT}.out ${.TARGET}
41
42.include <bsd.prog.mk>
43