Deleted Added
full compact
Makefile (125517) Makefile (125537)
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125517 2004-02-06 12:58:32Z ru $
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 125537 2004-02-06 21:58:32Z ru $
2
2
3PROG?= boot0
4NOMAN=
5STRIP=
6BINMODE= 444
3FILES= ${BOOT}
4CLEANFILES= ${BOOT} ${BOOT}.out ${BOOT}.o
7
5
8M4?= m4
6BOOT?= boot0
9
10# The default set of flags compiled into boot0. This enables update (writing
11# the modified boot0 back to disk after running so that the selection made is
12# saved), packet mode (detect and use the BIOS EDD extensions if we try to
13# boot past the 1024 cylinder liimt), and booting from all valid slices.
14BOOT_BOOT0_FLAGS?= 0xf
15
16# The number of timer ticks to wait for a keypress before assuming the default
17# selection. Since there are 18.2 ticks per second, the default value of
18# 0xb6 (182d) corresponds to 10 seconds.
19BOOT_BOOT0_TICKS?= 0xb6
20
21# The base address that we the boot0 code to to run it. Don't change this
22# unless you are glutton for punishment.
23BOOT_BOOT0_ORG?= 0x600
24
25# Comm settings for boot0sio. 0xE3 => 9600 8-N-1
26# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
27# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
28# command line
29BOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3
30
7
8# The default set of flags compiled into boot0. This enables update (writing
9# the modified boot0 back to disk after running so that the selection made is
10# saved), packet mode (detect and use the BIOS EDD extensions if we try to
11# boot past the 1024 cylinder liimt), and booting from all valid slices.
12BOOT_BOOT0_FLAGS?= 0xf
13
14# The number of timer ticks to wait for a keypress before assuming the default
15# selection. Since there are 18.2 ticks per second, the default value of
16# 0xb6 (182d) corresponds to 10 seconds.
17BOOT_BOOT0_TICKS?= 0xb6
18
19# The base address that we the boot0 code to to run it. Don't change this
20# unless you are glutton for punishment.
21BOOT_BOOT0_ORG?= 0x600
22
23# Comm settings for boot0sio. 0xE3 => 9600 8-N-1
24# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
25# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
26# command line
27BOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3
28
31${PROG}: ${PROG}.o
32 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o ${PROG}.out ${PROG}.o
33 objcopy -S -O binary ${PROG}.out ${.TARGET}
29AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \
30 --defsym TICKS=${BOOT_BOOT0_TICKS} \
31 --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
34
32
35${PROG}.o: ${PROG}.s
36 ${AS} ${AFLAGS} --defsym FLAGS=${BOOT_BOOT0_FLAGS} \
37 --defsym TICKS=${BOOT_BOOT0_TICKS} \
38 --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} \
39 ${.IMPSRC} -o ${.TARGET}
33${BOOT}: ${BOOT}.out
34 objcopy -S -O binary ${BOOT}.out ${.TARGET}
40
35
41CLEANFILES+= ${PROG}.out ${PROG}.o
36${BOOT}.out: ${BOOT}.o
37 ${LD} -N -e start -Ttext ${BOOT_BOOT0_ORG} -o ${.TARGET} ${BOOT}.o
42
43.include <bsd.prog.mk>
38
39.include <bsd.prog.mk>