[PATCH] pbl: define DEBUG globally when CONFIG_INITCALL_DEBUG=y

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Oct 17 00:04:57 PDT 2022

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

Signed-off-by: Ahmad Fatoum <a.fatoum at 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)
 # If building barebox in a separate objtree expand all occurrences
 # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/').

More information about the barebox mailing list