From 9485c816991b6d22f6575b8e07a6364063f7fb94 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 8 Mar 2007 23:28:58 +0000 Subject: [PATCH] Rename CONSOLE_SERIAL_TAG to CONSOLE_PREFIX, as "prefix" is a clearer name and the option is not only valid for the serial console. Make CONSOLE_PREFIX an EXPERT option, as most people will not usually change it. Put the option under a "Cosmetic console options" subheading, as more such options will probably follow... Signed-off-by: Uwe Hermann Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@221 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/console.c | 2 +- console/Kconfig | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/arch/x86/console.c b/arch/x86/console.c index a4d57f8f57..add3aa2529 100644 --- a/arch/x86/console.c +++ b/arch/x86/console.c @@ -20,7 +20,7 @@ void console_tx_byte(unsigned char byte) { if (byte == '\n') { uart8250_tx_byte(TTYSx_BASE, '\r'); -#if defined(CONFIG_CONSOLE_SERIAL_TAG) && (CONFIG_CONSOLE_SERIAL_TAG == 1) +#if defined(CONFIG_CONSOLE_PREFIX) && (CONFIG_CONSOLE_PREFIX == 1) uart8250_tx_byte(TTYSx_BASE, '\n'); uart8250_tx_byte(TTYSx_BASE, '('); uart8250_tx_byte(TTYSx_BASE, 'L'); diff --git a/console/Kconfig b/console/Kconfig index bc19af7a2f..9df572450c 100644 --- a/console/Kconfig +++ b/console/Kconfig @@ -128,14 +128,6 @@ config CONSOLE_SERIAL_9600 endchoice -config CONSOLE_SERIAL_TAG - bool "Tag serial console output" - depends CONSOLE_SERIAL - default n - help - When you enable this option, LinuxBIOS will prefix each line of - serial output with (LB). - config CONSOLE_VGA boolean "VGA console support" depends CONSOLE @@ -161,5 +153,16 @@ config CONSOLE_USB See http://linuxbios.org/EHCI_Debug_Port for an up-to-date list. +comment "Cosmetic console options" + depends EXPERT && (CONSOLE_SERIAL || CONSOLE_VGA || CONSOLE_USB) + +config CONSOLE_PREFIX + bool "Prefix all console output with '(LB)'" + depends EXPERT && (CONSOLE_SERIAL || CONSOLE_VGA || CONSOLE_USB) + default n + help + When you enable this option, LinuxBIOS will prefix each line of + console output with '(LB)'. + endmenu