diff options
| author | hathach <[email protected]> | 2019-10-25 21:20:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-10-25 21:20:05 +0700 |
| commit | 4e8c57171c7db9cf5e7110de5bf5d86bfae917cf (patch) | |
| tree | a6ab67e72d55ef01f0253d32cac37e99062ab798 /examples/make.mk | |
| parent | d0146be00b4dd41826f29e36bb10e0ecafce5e47 (diff) | |
| parent | 5d975d93139e0ce346372dc07ca34ef9df7b0287 (diff) | |
Merge branch 'master' into cr1901-msp430f5529
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 dc0d74bb0..4a2af3c22 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -50,6 +50,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 @@ -85,7 +86,11 @@ endif # 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 |
