Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2024 06:30:33 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 63e9c976640d - main - loader: Add new option WITH_LOADER_BIOS_TEXTONLY
Message-ID:  <202402180630.41I6UXso023841@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=63e9c976640d05ef65842eaf3d54de9a8d48cbdc

commit 63e9c976640d05ef65842eaf3d54de9a8d48cbdc
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-18 06:14:50 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-18 06:29:07 +0000

    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
---
 share/man/man5/src.conf.5                     | 6 +++++-
 share/mk/src.opts.mk                          | 1 +
 tools/build/options/WITH_LOADER_BIOS_TEXTONLY | 3 +++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5
index a32b267afeb4..2713e7416a52 100644
--- a/share/man/man5/src.conf.5
+++ b/share/man/man5/src.conf.5
@@ -1,5 +1,5 @@
 .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
-.Dd February 16, 2024
+.Dd February 17, 2024
 .Dt SRC.CONF 5
 .Os
 .Sh NAME
@@ -990,6 +990,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
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 20c98cf45567..e154fbd4059d 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -202,6 +202,7 @@ __DEFAULT_NO_OPTIONS = \
     DTRACE_TESTS \
     EXPERIMENTAL \
     HESIOD \
+    LOADER_BIOS_TEXTONLY \
     LOADER_VERBOSE \
     LOADER_VERIEXEC_PASS_MANIFEST \
     LLVM_BINUTILS \
diff --git a/tools/build/options/WITH_LOADER_BIOS_TEXTONLY b/tools/build/options/WITH_LOADER_BIOS_TEXTONLY
new file mode 100644
index 000000000000..08804c19c691
--- /dev/null
+++ b/tools/build/options/WITH_LOADER_BIOS_TEXTONLY
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402180630.41I6UXso023841>