summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-12-12 17:42:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-12-16 13:11:25 +0100
commitb88a98a2fd3bb0d79e93398895b840ceb446d8b5 (patch)
tree1e9c5c048b76e7db2f1417a817d99ececece2354 /common/Kconfig
parentb2f17a6b9cb2e5726d7f7b5697f70f0a66cb7455 (diff)
downloadbarebox-b88a98a2fd3bb0d79e93398895b840ceb446d8b5.tar.gz
pbl: Add Kconfig option to enable DEBUG globally in PBL
CONFIG_INITCALL_DEBUG=y is a very useful tool for debugging barebox hangs, but it's not so useful if the hang happens very early. Define a new CONFIG_DEBUG_PBL symbol that will define DEBUG globally in PBL to get more insight into boot hangs. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221212164212.2358450-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 19cd793110..46675dfe2e 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1566,6 +1566,15 @@ config DEBUG_INITCALLS
help
If enabled this will print initcall traces.
+config DEBUG_PBL
+ bool "Print PBL debugging information"
+ depends on PBL_CONSOLE || DEBUG_LL
+ help
+ If enabled this will enable all debug prints in the prebootloader.
+ For this to work, a console needs to be configured in the
+ board-specific entry point and configured for either DEBUG_LL
+ or PBL_CONSOLE.
+
config DEBUG_PROBES
bool "Trace driver probes/removes"
help