summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk
index dc0d74bb0..4a2af3c22 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -50,6 +50,7 @@ BUILD = _build/build-$(BOARD)
include $(TOP)/hw/bsp/$(BOARD)/board.mk
# Include all source C in board folder
+SRC_C += hw/bsp/board.c
SRC_C += $(subst $(TOP)/,,$(wildcard $(TOP)/hw/bsp/$(BOARD)/*.c))
# Compiler Flags
@@ -85,7 +86,11 @@ endif
# Debugging/Optimization
ifeq ($(DEBUG), 1)
- CFLAGS += -O0 -ggdb -DCFG_TUSB_DEBUG=1
+ CFLAGS += -Og -ggdb -DCFG_TUSB_DEBUG=2
else
+ifneq ($(BOARD), spresense)
CFLAGS += -flto -Os
+else
+ CFLAGS += -Os
+endif
endif