diff options
| author | hathach <[email protected]> | 2019-11-05 10:17:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-05 10:17:36 +0700 |
| commit | 1ab3a1035c997e66b2014e8edfb92e10202cd988 (patch) | |
| tree | 71dba7984372086a3742575a4be52bf507090e80 /examples/make.mk | |
| parent | 65e96e5d525ea02e0ca7f265a4d62b4f428cc821 (diff) | |
| parent | 3c49ff153e0f5219db9ad93f46672812676b965e (diff) | |
Merge branch 'master' into cr1901-msp430f5529
Diffstat (limited to 'examples/make.mk')
| -rw-r--r-- | examples/make.mk | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/make.mk b/examples/make.mk index 95b2593bd..fc9745131 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -82,11 +82,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 |
