loader: Add new option WITH_LOADER_BIOS_TEXTONLY

This option will omit all the graphics support, the teken terminal
library, video mode support, etc and support a simple, basic, text-only
video console for the x86 BIOS boot loader. It uses the FreeBSD 12
version of vidconsole.c. It defaults to NO.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D43912

(cherry picked from commit 63e9c976640d05ef65842eaf3d54de9a8d48cbdc)
This commit is contained in:
Warner Losh 2024-02-17 23:14:50 -07:00
parent 795edc4ac2
commit fcfd7396ae
3 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,5 @@
.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
.Dd April 11, 2024
.Dd April 15, 2024
.Dt SRC.CONF 5
.Os
.Sh NAME
@ -999,6 +999,10 @@ Do not build LLVM target support for X86.
The
.Va LLVM_TARGET_ALL
option should be used rather than this in most cases.
.It Va WITH_LOADER_BIOS_TEXTONLY
Use the old, FreeBSD 12 vidconsole.c.
This only supports text mode without teken, without any graphics, font or video mode support.
This setting only affects the i386 and amd64 BIOS boot loader.
.It Va WITH_LOADER_EFI_SECUREBOOT
Enable building
.Xr loader 8

View file

@ -204,6 +204,7 @@ __DEFAULT_NO_OPTIONS = \
DTRACE_TESTS \
EXPERIMENTAL \
HESIOD \
LOADER_BIOS_TEXTONLY \
LOADER_VERBOSE \
LOADER_VERIEXEC_PASS_MANIFEST \
LLVM_ASSERTIONS \

View file

@ -0,0 +1,3 @@
Use the old, FreeBSD 12 vidconsole.c.
This only supports text mode without teken, without any graphics, font or video mode support.
This setting only affects the i386 and amd64 BIOS boot loader.