summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk
index 699cc43d6..b736b8776 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -46,6 +46,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
@@ -78,7 +79,7 @@ CFLAGS += \
# 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