summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-24 13:17:01 +0700
committerGitHub <[email protected]>2019-10-24 13:17:01 +0700
commit5d975d93139e0ce346372dc07ca34ef9df7b0287 (patch)
tree8661248bd0392312a212dd02e07b06f6fa248da8 /examples/make.mk
parente413c9efa303d70de019a91aa415384fe80ca78f (diff)
parent6f952a8e84acfbc962cf3d37ed72bddefebaf58b (diff)
Merge pull request #203 from hathach/develop
add log support using uart with CFG_TUSB_DEBUG >= 2, close #200
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