From 3aafbf5a854058e1a02c37426bb629beb5e0c2f2 Mon Sep 17 00:00:00 2001 From: Bo Gan Date: Fri, 5 Jun 2026 04:32:12 -0700 Subject: [PATCH] Makefile: define OPENSBI_DEBUG if DEBUG builds Signed-off-by: Bo Gan Reviewed-by: Anup Patel Tested-by: Anirudh Srinivasan Link: https://lore.kernel.org/r/20260605113214.242-7-ganboing@gmail.com Signed-off-by: Anup Patel --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 54eb15bc..37793aaf 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