Add the ability to subset the devices that UART pulls in. This allows

the arm to compile without all the extras that don't appear, at least
not in the flavors of ARM I deal with.  This helps us save about 100k.

If I've botched the available devices on a platform, please let me
know and I'll correct ASAP.
This commit is contained in:
Warner Losh 2006-06-12 04:21:50 +00:00
parent ccdc8d9bff
commit 78878cef94
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159537
7 changed files with 24 additions and 3 deletions

View File

@ -11,3 +11,6 @@ device isa
# Pseudo devices.
device mem # Memory and kernel memory devices
device io # I/O device
# UART chips on this platform
device uart_ns8250

View File

@ -965,9 +965,9 @@ dev/uart/uart_bus_puc.c optional uart puc
dev/uart/uart_bus_scc.c optional uart scc
dev/uart/uart_core.c optional uart
dev/uart/uart_dbg.c optional uart gdb
dev/uart/uart_dev_ns8250.c optional uart
dev/uart/uart_dev_sab82532.c optional uart
dev/uart/uart_dev_z8530.c optional uart
dev/uart/uart_dev_ns8250.c optional uart uart_ns8250
dev/uart/uart_dev_sab82532.c optional uart uart_sab82532
dev/uart/uart_dev_z8530.c optional uart uart_z8530
dev/uart/uart_if.m optional uart
dev/uart/uart_subr.c optional uart
dev/uart/uart_tty.c optional uart

View File

@ -14,3 +14,6 @@ device npx
# Pseudo devices.
device mem # Memory and kernel memory devices
device io # I/O device
# UART chips on this platform
device uart_ns8250

View File

@ -10,3 +10,6 @@ device acpi # ACPI support
# Pseudo devices.
device mem # Memory and kernel memory devices
# UART chips on this platform
device uart_ns8250

View File

@ -15,3 +15,7 @@ device npx
# Pseudo devices.
device mem # Memory and kernel memory devices
device io # I/O device
# UART chips on this platform
device uart_ns8250
#device uart_i8251

View File

@ -7,3 +7,6 @@ machine powerpc
# Pseudo devices.
device mem # Memory and kernel memory devices
# UART chips on this platform
device uart_ns8250

View File

@ -7,3 +7,8 @@ machine sparc64
# Pseudo devices.
device mem # Memory and kernel memory devices
# UART chips on this platform
device uart_ns8250
device uart_sab82352
device uart_z8350