Merge branch 'master' into cr1901-msp430f5529

This commit is contained in:
hathach
2019-10-25 21:20:05 +07:00
71 changed files with 1901 additions and 1259 deletions
+6 -1
View File
@@ -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