summaryrefslogtreecommitdiff
path: root/payloads/libpayload/Config.in
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2013-02-15 08:13:29 -0800
committerGabe Black <gabeblack@chromium.org>2013-02-16 04:48:51 +0100
commit7b6945405a7c703bb371cab973238e0c15b07cdf (patch)
tree1424abf4afab2b38392804892bc055b42a9e644b /payloads/libpayload/Config.in
parent802921562f2f9b94686b1464e994c761416ad88e (diff)
libpayload: only compile drivers/serial.c on machines that use it.
Create a new serial console variable, X86_SERIAL_CONSOLE which is only enabled when SERIAL_CONSOLE and ARCH_X86 are defined. Builds for x86 and ARM. Change-Id: I607253c418de015975a839e3c33577842885ec0c Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/2412 Tested-by: build bot (Jenkins) Reviewed-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'payloads/libpayload/Config.in')
-rw-r--r--payloads/libpayload/Config.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/payloads/libpayload/Config.in b/payloads/libpayload/Config.in
index a14291d50d..0a6fbe8ea3 100644
--- a/payloads/libpayload/Config.in
+++ b/payloads/libpayload/Config.in
@@ -168,9 +168,14 @@ config SERIAL_CONSOLE
bool "See output on the serial port console"
default y
+config X86_SERIAL_CONSOLE
+ bool
+ depends on ARCH_X86 && SERIAL_CONSOLE
+ default y
+
config SERIAL_IOBASE
hex "I/O base for the serial port (default 0x3f8)"
- depends on SERIAL_CONSOLE
+ depends on X86_SERIAL_CONSOLE
default 0x3f8
config SERIAL_SET_SPEED