Makefile: define OPENSBI_DEBUG if DEBUG builds

Signed-off-by: Bo Gan <ganboing@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
Link: https://lore.kernel.org/r/20260605113214.242-7-ganboing@gmail.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Bo Gan
2026-06-05 04:32:12 -07:00
committed by Anup Patel
parent eba121b459
commit 3aafbf5a85
+1
View File
@@ -451,6 +451,7 @@ DTSCPPFLAGS = $(CPPFLAGS) -nostdinc -nostdlib -fno-builtin -D__DTS__ -x assemble
ifneq ($(DEBUG),) ifneq ($(DEBUG),)
CFLAGS += -O0 CFLAGS += -O0
CPPFLAGS += -DOPENSBI_DEBUG
else else
CFLAGS += -O2 CFLAGS += -O2
endif endif