mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] pbl: define DEBUG globally when CONFIG_INITCALL_DEBUG=y
@ 2022-10-17  7:04 Ahmad Fatoum
  2022-12-09  7:15 ` Ahmad Fatoum
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2022-10-17  7:04 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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. As PBL's
function can be construed as preparing for initcall execution,
CONFIG_INITCALL_DEBUG should enable PBL debugging too, so let's just do
that.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 scripts/Makefile.lib | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 16308497b845..8cda2a3187ba 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -156,6 +156,10 @@ _c_flags       += $(if $(patsubst n%,, \
 PBL_CPPFLAGS   += $(call cc-option,-fno-sanitize=all)
 endif
 
+ifeq ($(CONFIG_DEBUG_INITCALLS),y)
+PBL_CPPFLAGS   += -DDEBUG
+endif
+
 # If building barebox in a separate objtree expand all occurrences
 # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/').
 
-- 
2.30.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-09  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-17  7:04 [PATCH] pbl: define DEBUG globally when CONFIG_INITCALL_DEBUG=y Ahmad Fatoum
2022-12-09  7:15 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox