diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-04-19 04:32:54 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-28 18:32:23 -0400 |
commit | 14ad44ab466a8f4630c603f4c0bb5c57d0f27ae6 (patch) | |
tree | 4dca5b875ad778a2d4862804ff89b66175cd6aa5 /common | |
parent | d4bb3b376223c72b49c3a2bdcce896557d997e6b (diff) |
spl: Split sprintf, strto* from SPL serial in Kconfig
When SPL serial is disabled, callers who need sprintf or strtoul fail
because their inclusion is guarded by CONFIG_SPL_SERIAL_SUPPORT/
CONFIG_TPL_SERIAL_SUPPORT.
Split printf, sprintf and strto into their own entries and then select
all of them if SERIAL_SUPPORT is enabled to match the current behaviour.
Include panic.o unconditionally as it can be called from anywhere which
uses BUG_ON().
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig index c5d4b5e14b..259f96607e 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -626,6 +626,8 @@ config SPL_SATA_SUPPORT config SPL_SERIAL_SUPPORT bool "Support serial" + select SPL_PRINTF + select SPL_STRTO help Enable support for serial in SPL. This allows use of a serial UART for displaying messages while SPL is running. It also brings in @@ -927,6 +929,8 @@ config TPL_RAM_DEVICE config TPL_SERIAL_SUPPORT bool "Support serial" + select TPL_PRINTF + select TPL_STRTO help Enable support for serial in TPL. See SPL_SERIAL_SUPPORT for details. |