git: ea5b2d62426f - main - MIMIMAL: add uart

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 01 Jul 2022 17:25:42 UTC
The branch main has been updated by imp:

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

commit ea5b2d62426ff4387ab4293b977bb9f6e7212700
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-01 17:22:38 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-01 17:24:51 +0000

    MIMIMAL: add uart
    
    While uart could be detected completely through plug and play means, add
    it here for two reasons. First, we don't do that from the loader, so
    it's not available as a console. Second, even if we did do it from the
    loader, there's a limitation in the system today that console drivers
    must be compiled into the kernel because the console is selected before
    external modules are linked into the kernel. Adding it only increases
    the kernel size by ~14k as well.
    
    Sponsored by:           Netflix
    Idea liked by:          des, rpokala, brooks, jhb
---
 sys/amd64/conf/MINIMAL | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/amd64/conf/MINIMAL b/sys/amd64/conf/MINIMAL
index 3c9dc8f4df5b..62f942eef677 100644
--- a/sys/amd64/conf/MINIMAL
+++ b/sys/amd64/conf/MINIMAL
@@ -118,6 +118,10 @@ device		vt_vbefb
 
 device		agp			# support several AGP chipsets
 
+# Bring in 'uart' as well, since it can be a console driver and all console
+# drivers must be compiled into the kernel.
+device		uart
+
 # Pseudo devices.
 device		loop			# Network loopback
 device		padlock_rng		# VIA Padlock RNG