summaryrefslogtreecommitdiffstats
path: root/sys/i386/boot/biosboot/Makefile
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-10-14 17:25:53 +0000
committerpst <pst@FreeBSD.org>1996-10-14 17:25:53 +0000
commit3d16420dd5a0086f5156ac7cd8f0455ddd6650e9 (patch)
treecefc7f05d017e407b523add3c61d0834d98b5a36 /sys/i386/boot/biosboot/Makefile
parent8882da7174e91ee617637316f18a49cee0dd56d9 (diff)
downloadFreeBSD-src-3d16420dd5a0086f5156ac7cd8f0455ddd6650e9.zip
FreeBSD-src-3d16420dd5a0086f5156ac7cd8f0455ddd6650e9.tar.gz
Expose the control mechanism for serial console boot so that the default
shipped with freebsd can be changed without modifying the Makefiles directly. Creates: BOOT_FORCE_COMCONSOLE BOOT_PROBE_KEYBOARD BOOT_PROBE_KEYBOARD_LOCK BOOT_COMCONSOLE (port value for console)
Diffstat (limited to 'sys/i386/boot/biosboot/Makefile')
-rw-r--r--sys/i386/boot/biosboot/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/sys/i386/boot/biosboot/Makefile b/sys/i386/boot/biosboot/Makefile
index 85cde18..6590d27 100644
--- a/sys/i386/boot/biosboot/Makefile
+++ b/sys/i386/boot/biosboot/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.48 1996/10/08 22:41:31 bde Exp $
+# $Id: Makefile,v 1.49 1996/10/14 12:37:47 bde Exp $
#
PROG= boot
@@ -10,18 +10,28 @@ BINDIR= /usr/mdec
BINMODE= 444
CFLAGS= -O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
-DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
-CFLAGS+= -DCOMCONSOLE=0x3F8
CFLAGS+= -DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+= ${CWARNFLAGS}
# Probe the keyboard and use the serial console if the keyboard isn't found.
-#CFLAGS+= -DPROBE_KEYBOARD
+.if defined(BOOT_PROBE_KEYBOARD)
+CFLAGS+= -DPROBE_KEYBOARD
+.endif
# Probe the keyboard lock and use the serial console if the keyboard is locked.
-#CFLAGS+= -DPROBE_KEYBOARD_LOCK
+.if defined(BOOT_PROBE_KEYBOARD_LOCK)
+CFLAGS+= -DPROBE_KEYBOARD_LOCK
+.endif
# Force use of the serial console.
-#CFLAGS+= -DFORCE_COMCONSOLE
+.if defined(BOOT_FORCE_COMCONSOLE)
+CFLAGS+= -DFORCE_COMCONSOLE
+.endif
+
+# By default, if a serial port is going to be used as console, use COM1
+# (aka /dev/ttyd0).
+BOOT_COMCONSOLE_PORT?=0x3F8
+CFLAGS+= -DCOMCONSOLE=${BOOT_COMCONSOLE_PORT}
# Enable code to take the default boot string from a fixed location on the
# disk. See nextboot(8) and README.386BSD for more info.
OpenPOWER on IntegriCloud