1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-10-05 19:20:36 +00:00
|
|
|
|
2004-02-09 14:11:58 +00:00
|
|
|
PROG= ${BOOT}.out
|
|
|
|
INTERNALPROG=
|
2004-02-06 21:58:32 +00:00
|
|
|
FILES= ${BOOT}
|
2004-02-09 14:11:58 +00:00
|
|
|
NOMAN=
|
|
|
|
SRCS= ${BOOT}.s
|
|
|
|
CLEANFILES= ${BOOT}
|
1998-10-05 10:08:37 +00:00
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
BOOT?= boot0
|
1998-10-05 10:08:37 +00:00
|
|
|
|
2002-01-10 21:40:33 +00:00
|
|
|
# The default set of flags compiled into boot0. This enables update (writing
|
|
|
|
# the modified boot0 back to disk after running so that the selection made is
|
|
|
|
# saved), packet mode (detect and use the BIOS EDD extensions if we try to
|
|
|
|
# boot past the 1024 cylinder liimt), and booting from all valid slices.
|
|
|
|
BOOT_BOOT0_FLAGS?= 0xf
|
1998-10-19 19:13:53 +00:00
|
|
|
|
2002-01-10 21:40:33 +00:00
|
|
|
# The number of timer ticks to wait for a keypress before assuming the default
|
|
|
|
# selection. Since there are 18.2 ticks per second, the default value of
|
|
|
|
# 0xb6 (182d) corresponds to 10 seconds.
|
|
|
|
BOOT_BOOT0_TICKS?= 0xb6
|
|
|
|
|
|
|
|
# The base address that we the boot0 code to to run it. Don't change this
|
|
|
|
# unless you are glutton for punishment.
|
|
|
|
BOOT_BOOT0_ORG?= 0x600
|
1998-10-05 10:08:37 +00:00
|
|
|
|
2004-01-06 18:46:35 +00:00
|
|
|
# Comm settings for boot0sio. 0xE3 => 9600 8-N-1
|
|
|
|
# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
|
|
|
|
# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
|
|
|
|
# command line
|
|
|
|
BOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3
|
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \
|
|
|
|
--defsym TICKS=${BOOT_BOOT0_TICKS} \
|
|
|
|
--defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
|
1998-10-05 10:08:37 +00:00
|
|
|
|
2004-02-09 14:11:58 +00:00
|
|
|
LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG}
|
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
${BOOT}: ${BOOT}.out
|
|
|
|
objcopy -S -O binary ${BOOT}.out ${.TARGET}
|
1998-10-05 10:08:37 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|