summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Gan <[email protected]>2026-06-05 04:32:12 -0700
committerAnup Patel <[email protected]>2026-06-16 13:25:36 +0530
commit3aafbf5a854058e1a02c37426bb629beb5e0c2f2 (patch)
treead32a3e2e7aac85293f8cc0936f23deab8b2d765
parenteba121b459889868513e5e87639d5273012728f7 (diff)
Makefile: define OPENSBI_DEBUG if DEBUG builds
Signed-off-by: Bo Gan <[email protected]> Reviewed-by: Anup Patel <[email protected]> Tested-by: Anirudh Srinivasan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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