bin/50300: Make the loader's use of terminal-control sequences
optional.
Glenn Trewitt
glenn at trewitt.org
Tue Mar 25 23:32:37 PST 2003
>Number: 50300
>Category: bin
>Synopsis: Make the loader's use of terminal-control sequences optional.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 25 15:20:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Glenn Trewitt
>Release: FreeBSD 4.7-RELEASE i386
>Organization:
Carnegie Mellon University
>Environment:
System: FreeBSD bureau.west.cmu.edu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 murray at builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386
>Description:
The loader(8) program sends cursor control commands to the console at
boot time. Systems that use serial consoles don't necessarily provide
support for those (fixed) control sequences. This can create really
annoying problems, possibly locking up some terminals.
The loader sources provide a compile-time #ifdef option (TERM_EMU)
that enables this functionality, which is always enabled in the
Makefile.
>How-To-Repeat:
n/a
>Fix:
Make the TERM_EMU option selectable in the Makefile.
This is a diff on /usr/src/sys/boot/i386/libi386/Makefile.
The same patch applies to /usr/src/sys/boot/pc98/libpc98/Makefile, but
I have no way to test that.
diff -u Makefile.orig Makefile
--- Makefile.orig Tue Mar 25 14:58:31 2003
+++ Makefile Tue Mar 25 14:58:58 2003
@@ -29,7 +29,9 @@
.endif
# Include simple terminal emulation (cons25-compatible)
+.ifdef(NO_BOOT_TERM_EMU)
CFLAGS+= -DTERM_EMU
+.endif
# Make "machine" required for all objects
# (based on the more complete case in sys/i386/boot/Makefile.inc)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list