summaryrefslogtreecommitdiff
path: root/debug.mk
diff options
context:
space:
mode:
Diffstat (limited to 'debug.mk')
-rw-r--r--debug.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/debug.mk b/debug.mk
new file mode 100644
index 0000000..b57cfc0
--- /dev/null
+++ b/debug.mk
@@ -0,0 +1,12 @@
+###################################################
+# Build Flags for the Debug Configuration
+###################################################
+
+# Set the optimization level
+RISCV_CFLAGS += -O0
+RISCV_CXXFLAGS += -O0
+
+# Enable debug
+RISCV_CFLAGS += -g
+RISCV_CXXFLAGS += -g
+