summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-05 10:18:32 +0700
committerhathach <[email protected]>2019-11-05 10:18:32 +0700
commit3d748e6e2eb9561ce27d5239f97aeb1d0d45f1e2 (patch)
tree0ab0b48278f04f6c32cbe01415c78cdb7b4c18d2 /examples/make.mk
parent8cd19f88b9039657079a85d7bdb2cd3fffce585b (diff)
parent3c49ff153e0f5219db9ad93f46672812676b965e (diff)
Merge branch 'master' into port-samg55
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/make.mk b/examples/make.mk
index b736b8776..c2e0559fb 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -79,11 +79,16 @@ CFLAGS += \
# Debugging/Optimization
ifeq ($(DEBUG), 1)
- CFLAGS += -Og -ggdb -DCFG_TUSB_DEBUG=2
+ CFLAGS += -Og -ggdb
else
-ifneq ($(BOARD), spresense)
- CFLAGS += -flto -Os
-else
- CFLAGS += -Os
+ ifneq ($(BOARD),spresense)
+ CFLAGS += -flto -Os
+ else
+ CFLAGS += -Os
+ endif
endif
+
+# TUSB Logging option
+ifneq ($(LOG),)
+ CFLAGS += -DCFG_TUSB_DEBUG=$(LOG)
endif