diff options
| author | Nathan Conrad <[email protected]> | 2019-10-31 12:23:54 -0400 |
|---|---|---|
| committer | Nathan Conrad <[email protected]> | 2019-10-31 12:23:54 -0400 |
| commit | d35f86993fc1292c7981bf66bca2d3cae40766e3 (patch) | |
| tree | 4dd77aafc3c60c7a9a8c428986589f267f1b34c2 /examples/make.mk | |
| parent | cef388b7bd956adbc6af4904d4d95ca4120ebb7b (diff) | |
| parent | 4d329d46cc36a8df05580ea7b19f2ce7a8dc2bf7 (diff) | |
Merge remote-tracking branch 'origin/master' into ZLP_Request2
Diffstat (limited to 'examples/make.mk')
| -rw-r--r-- | examples/make.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk index 22d8f7455..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,11 @@ 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 +else + CFLAGS += -Os +endif endif |
