diff options
| author | hathach <[email protected]> | 2019-11-05 00:05:21 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-05 00:05:21 +0700 |
| commit | 3c49ff153e0f5219db9ad93f46672812676b965e (patch) | |
| tree | 00f66228407673c6a786f5c224e5fa2faae0a731 /examples/make.mk | |
| parent | e43e3e9f10b4be0c92e32fc9a470bf4a6cbfcd55 (diff) | |
| parent | 8d0fa158d77ad833eec7e1d8ea4abbec31072893 (diff) | |
Merge pull request #149 from pigrew/ZLP_Request2
Zlp request2
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 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 |
