[PATCH v2 6/8] Makefile: define OPENSBI_DEBUG if DEBUG builds

Anup Patel apatel at ventanamicro.com
Tue Jun 16 01:19:34 PDT 2026


Generally good to have at least one sentence of commit description.
I will take care of it at the time of merging.

On Fri, Jun 5, 2026 at 5:04 PM Bo Gan <ganboing at gmail.com> wrote:
>
> Signed-off-by: Bo Gan <ganboing at gmail.com>

Reviewed-by: Anup Patel <anup at brainfault.org>

Thanks,
Anup

> ---
>  Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Makefile b/Makefile
> index 46541063..6ce3c11e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -451,6 +451,7 @@ DTSCPPFLAGS =       $(CPPFLAGS) -nostdinc -nostdlib -fno-builtin -D__DTS__ -x assemble
>
>  ifneq ($(DEBUG),)
>  CFLAGS         +=      -O0
> +CPPFLAGS       +=      -DOPENSBI_DEBUG
>  else
>  CFLAGS         +=      -O2
>  endif
> --
> 2.34.1
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list