summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-12-08 10:28:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-12-09 12:59:19 +0100
commitf2847088be8f94caa19d6f4a8f5d5a2d6487568c (patch)
tree1c965dea7aa8d15b9b57af64d439471656fb743a /common/Kconfig
parent5d876958860201175e6fb684c3e01b6a82410b03 (diff)
downloadbarebox-f2847088be8f94caa19d6f4a8f5d5a2d6487568c.tar.gz
barebox-f2847088be8f94caa19d6f4a8f5d5a2d6487568c.tar.xz
Add PBL console support
This adds simple console support to the PBL which makes it possible to print more complex messages in the PBL than just strings or hex numbers. For now puts_ll is used to print the messages, so it depends on CONFIG_DEBUG_LL which makes it more a debugging option. However, this could be extended later to get regular output from the PBL if desired. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 4614965899..00e4f36d62 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -882,6 +882,17 @@ config DEBUG_INITCALLS
bool "Trace initcalls"
help
If enabled this will print initcall traces.
+
+config PBL_CONSOLE
+ depends on DEBUG_LL
+ bool "Enable console support in PBL"
+ help
+ This enables printf/pr_* support in the PBL to get more
+ informational output earlier during startup. Note that
+ printf/pr_* need a valid C environment, so the binary
+ must be running at the address it's linked at and bss must
+ be cleared. On ARM that would be after setup_c().
+
endmenu
config HAS_DEBUG_LL