1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL

CONFIG_CONSOLE_MUX and CONFIG_SYS_CONSOLE_IS_IN_ENV are not applicable
for SPL. Update the console code to use CONFIG_IS_ENABLED(), so that these
options will be inactive in SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass
2017-01-16 07:03:26 -07:00
committed by Bin Meng
parent 7cbaddd4ad
commit b026542946
3 changed files with 20 additions and 20 deletions

View File

@@ -10,7 +10,7 @@
#include <serial.h>
#include <malloc.h>
#ifdef CONFIG_CONSOLE_MUX
#if CONFIG_IS_ENABLED(CONSOLE_MUX)
void iomux_printdevs(const int console)
{
int i;
@@ -145,4 +145,4 @@ int iomux_doenv(const int console, const char *arg)
free(cons_set);
return 0;
}
#endif /* CONFIG_CONSOLE_MUX */
#endif /* CONSOLE_MUX */