summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/Kconfig4
-rw-r--r--common/startup.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 58956b41c1..3d3525b68f 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -703,6 +703,10 @@ config DEBUG_IMX_UART_PORT
Choose UART port on which kernel low-level debug messages
should be output.
+config DEBUG_INITCALLS
+ bool "Trace initcalls"
+ help
+ If enabled this will print initcall traces.
endmenu
config HAS_DEBUG_LL
diff --git a/common/startup.c b/common/startup.c
index ff00ca78ae..9b33a92c86 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -21,6 +21,10 @@
*
*/
+#ifdef CONFIG_DEBUG_INITCALLS
+#define DEBUG
+#endif
+
/**
* @file
* @brief Main entry into the C part of barebox