From nobody Tue Apr 16 20:12:58 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VJwFk3hX1z5H0W7; Tue, 16 Apr 2024 20:12:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJwFk0v15z4tLX; Tue, 16 Apr 2024 20:12:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713298378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B3IJJErGMvQ/ts0UGcIDtlHijkTxJQKpPggFuLF4pME=; b=Xpcf/8FoCqYwhlN6vW0j0f3IbGKYW21ICH7riawCbbNM0mEcAcZ8jeKTSZ51SYWKR6BT9j 95YIrooCD8j1/PohJa4QBov7jtr4rocUJMVrmdfGB5RCxef3IQ+5NyD0ZIhw8zadBu99W/ koyhEoPYTUbHBhwPJIFmL2RQd/eQmEul8Pw85IfcAlpOlYhDZehOuQ97nbwRqoGjniBSr4 opZ8m+EYIgDEFT92wL1wXArLseBeQMVbYomrozT9qh/57/ovxl0I8sVUU7pzK7ZpDKGSpF StTbxREHIh7b+cWrERtR/J7o/bDB7Ms0nv/efbaiV0jnQuB/ubUHM7Q+cqlfkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713298378; a=rsa-sha256; cv=none; b=YkeMYOUe44Bcqhr+e4Wd0qWuqpZCBOcO0VRuPN16j3Ff3IV4P+9ITaHMnPMqBPT/90s4oP Z4ibQs7Ylp/xVwm1bOF7khlzpm251wBoy3T4OqhCuwLioHTkhTFar7RZfDrLHZuUoagDok ubMb+sKMFOaQI/19/uQomH6QVOmoUfwPiKghm9lk/KYVzjmxPuFeqFLLCkXuMPBv8MeAeS 4C9FPxL/XhdLqR6EJgQRVRVb0t7IqGd/F1RlkLIr/MyOGWBbgBc6rhI/Plf+26+SA5anV1 qV+WN5DmO1AwT8jnFgSLRUr/LmUNHfr03E21+WBwlWMmcenYsv4tSg97kddS9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713298378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B3IJJErGMvQ/ts0UGcIDtlHijkTxJQKpPggFuLF4pME=; b=pwV/73eK+9m/tgaX8M5FG3wlyoraW7NsojdjVq04Fw6LEJYgBjzbdK4mWao/R6X4A/cPcR Fd4jRzn/0Y/oAVu/9JUTlKMOR5Z4IPRxpza8FgBxZydN8FnbmgnwazRh39C11nWX+nW503 vzBPojlzr0ym0zLPDX2YBwGNK7cV1ekZ63UVGHoVysKA9u+1yXHtuSLkXRLTFtkV5IoqdM 6kMixbYQpjWssYx1P3c3IWJgUWtTy9HMqaQJZSHMrOcZVKdpBULBnwO3IgYU6xB5DDYLDK tJlpfRVqx3mpHtXMKzfazYt19wcssaXl9ypLJhwaVjCEBAhWLfyyQUVykEWV3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VJwFk0WKJzwwD; Tue, 16 Apr 2024 20:12:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43GKCwGv038366; Tue, 16 Apr 2024 20:12:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43GKCwXM038363; Tue, 16 Apr 2024 20:12:58 GMT (envelope-from git) Date: Tue, 16 Apr 2024 20:12:58 GMT Message-Id: <202404162012.43GKCwXM038363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: fcfd7396ae8a - stable/14 - loader: Add new option WITH_LOADER_BIOS_TEXTONLY List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fcfd7396ae8a93ecfe880bbfa6bc3461b98eb6d6 Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=fcfd7396ae8a93ecfe880bbfa6bc3461b98eb6d6 commit fcfd7396ae8a93ecfe880bbfa6bc3461b98eb6d6 Author: Warner Losh AuthorDate: 2024-02-18 06:14:50 +0000 Commit: Warner Losh CommitDate: 2024-04-16 19:54:25 +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 (cherry picked from commit 63e9c976640d05ef65842eaf3d54de9a8d48cbdc) --- 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 eec250bcbca2..4bb38fe61a77 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 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 diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index a8b33fcdc6d6..788c6a9b956f 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -204,6 +204,7 @@ __DEFAULT_NO_OPTIONS = \ DTRACE_TESTS \ EXPERIMENTAL \ HESIOD \ + LOADER_BIOS_TEXTONLY \ LOADER_VERBOSE \ LOADER_VERIEXEC_PASS_MANIFEST \ LLVM_ASSERTIONS \ 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.