Deleted Added
full compact
Makefile (139103) Makefile (145515)
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 139103 2004-12-21 08:47:35Z ru $
1# $FreeBSD: head/sys/boot/i386/boot0/Makefile 145515 2005-04-25 17:41:35Z ru $
2
3PROG?= boot0
4STRIP=
5BINMODE=${NOBINMODE}
6NO_MAN=
7SRCS= ${PROG}.S
8
9# The default set of flags compiled into boot0. This enables update (writing

--- 6 unchanged lines hidden (view full) ---

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
2
3PROG?= boot0
4STRIP=
5BINMODE=${NOBINMODE}
6NO_MAN=
7SRCS= ${PROG}.S
8
9# The default set of flags compiled into boot0. This enables update (writing

--- 6 unchanged lines hidden (view full) ---

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
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)
31BOOT_COMCONSOLE_SPEED?= 9600
32.if ${BOOT_COMCONSOLE_SPEED} == 9600
33BOOT_BOOT0_COMCONSOLE_SPEED= "7 << 5 + 3"
34.elif ${BOOT_COMCONSOLE_SPEED} == 4800
35BOOT_BOOT0_COMCONSOLE_SPEED= "6 << 5 + 3"
36.elif ${BOOT_COMCONSOLE_SPEED} == 2400
37BOOT_BOOT0_COMCONSOLE_SPEED= "5 << 5 + 3"
38.elif ${BOOT_COMCONSOLE_SPEED} == 1200
39BOOT_BOOT0_COMCONSOLE_SPEED= "4 << 5 + 3"
40.elif ${BOOT_COMCONSOLE_SPEED} == 600
41BOOT_BOOT0_COMCONSOLE_SPEED= "3 << 5 + 3"
42.elif ${BOOT_COMCONSOLE_SPEED} == 300
43BOOT_BOOT0_COMCONSOLE_SPEED= "2 << 5 + 3"
44.elif ${BOOT_COMCONSOLE_SPEED} == 150
45BOOT_BOOT0_COMCONSOLE_SPEED= "1 << 5 + 3"
46.elif ${BOOT_COMCONSOLE_SPEED} == 110
47BOOT_BOOT0_COMCONSOLE_SPEED= "0 << 5 + 3"
48.else
49BOOT_BOOT0_COMCONSOLE_SPEED= "7 << 5 + 3"
50.endif
51.endif
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>
52
53CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
54 -DTICKS=${BOOT_BOOT0_TICKS} \
55 -DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
56
57LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary
58
59.include <bsd.prog.mk>