]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/pc98/btx/btx/Makefile
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / sys / boot / pc98 / btx / btx / Makefile
1 # $FreeBSD$
2
3 PROG=   btx
4 INTERNALPROG=
5 NO_MAN=
6 SRCS=   btx.S
7
8 .if defined(PAGING)
9 CFLAGS+=-DPAGING
10 .endif
11
12 .if defined(BOOT_BTX_NOHANG)
13 BOOT_BTX_FLAGS=0x1
14 .else
15 BOOT_BTX_FLAGS=0x0
16 .endif
17
18 CFLAGS+=-DBTX_FLAGS=${BOOT_BTX_FLAGS}
19
20 .if defined(BTX_SERIAL)
21 BOOT_COMCONSOLE_PORT?= 0x238
22 BOOT_COMCONSOLE_SPEED?= 9600
23 B2SIOFMT?=      0x3
24
25 CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
26         -DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
27 .endif
28
29 ORG=    0x9000
30
31 LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S,--oformat,binary
32
33 .include <bsd.prog.mk>