[PATCH] pbl: define DEBUG globally when CONFIG_INITCALL_DEBUG=y
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Dec 8 23:15:28 PST 2022
On 17.10.22 09:04, Ahmad Fatoum wrote:
> 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 at pengutronix.de>
Ping.
> ---
> 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 '/').
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list