]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/boot/i386/boot0/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / boot / i386 / boot0 / Makefile
1 # $FreeBSD$
2
3 PROG?=  boot0
4 STRIP=
5 BINMODE=${NOBINMODE}
6 NO_MAN=
7 SRCS=   ${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.
13 BOOT_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.
18 BOOT_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.
22 BOOT_BOOT0_ORG?=        0x600
23
24 # Comm settings for boot0sio.
25 # Bit(s) Description
26 # 7-5    data rate (110,150,300,600,1200,2400,4800,9600 bps)
27 # 4-3    parity (00 or 10 = none, 01 = odd, 11 = even)
28 # 2      stop bits (set = 2, clear = 1)
29 # 1-0    data bits (00 = 5, 01 = 6, 10 = 7, 11 = 8)
30 .if !defined(BOOT_BOOT0_COMCONSOLE_SPEED)
31 BOOT_COMCONSOLE_SPEED?= 9600
32 .if ${BOOT_COMCONSOLE_SPEED} == 9600
33 BOOT_BOOT0_COMCONSOLE_SPEED=    "7 << 5 + 3"
34 .elif ${BOOT_COMCONSOLE_SPEED} == 4800
35 BOOT_BOOT0_COMCONSOLE_SPEED=    "6 << 5 + 3"
36 .elif ${BOOT_COMCONSOLE_SPEED} == 2400
37 BOOT_BOOT0_COMCONSOLE_SPEED=    "5 << 5 + 3"
38 .elif ${BOOT_COMCONSOLE_SPEED} == 1200
39 BOOT_BOOT0_COMCONSOLE_SPEED=    "4 << 5 + 3"
40 .elif ${BOOT_COMCONSOLE_SPEED} == 600
41 BOOT_BOOT0_COMCONSOLE_SPEED=    "3 << 5 + 3"
42 .elif ${BOOT_COMCONSOLE_SPEED} == 300
43 BOOT_BOOT0_COMCONSOLE_SPEED=    "2 << 5 + 3"
44 .elif ${BOOT_COMCONSOLE_SPEED} == 150
45 BOOT_BOOT0_COMCONSOLE_SPEED=    "1 << 5 + 3"
46 .elif ${BOOT_COMCONSOLE_SPEED} == 110
47 BOOT_BOOT0_COMCONSOLE_SPEED=    "0 << 5 + 3"
48 .else
49 BOOT_BOOT0_COMCONSOLE_SPEED=    "7 << 5 + 3"
50 .endif
51 .endif
52
53 CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
54         -DTICKS=${BOOT_BOOT0_TICKS} \
55         -DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
56
57 LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary
58
59 .include <bsd.prog.mk>