custom-board-bundle-sample-.../firmware/config/boards/prometheus/prometheus-common-board.mk

22 lines
721 B
Makefile
Raw Normal View History

2018-01-29 15:27:01 -08:00
# List of all the board related files.
BOARDSRC = $(BOARD_DIR)/../board_extra.c
BOARDCPPSRC = $(BOARD_DIR)/../board_configuration.cpp
2018-01-29 15:27:01 -08:00
BOARDINC += $(BOARD_DIR)/..
2018-01-29 15:27:01 -08:00
# Required include directories
# Default to a release build - clear EXTRA_PARAMS from cmdline to build debug
ifeq ($(EXTRA_PARAMS),)
EXTRA_PARAMS = -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE
endif
ifeq ($(DEBUG_LEVEL_OPT),)
DEBUG_LEVEL_OPT = -O2
2018-01-29 15:27:01 -08:00
endif
ifeq ($(PROMETHEUS_BOARD),405)
DDEFS += -DFIRMWARE_ID=\"prometeus405\" -DSHORT_BOARD_NAME=prometheus_405
else
DDEFS += -DFIRMWARE_ID=\"prometeus469\" -DSHORT_BOARD_NAME=prometheus_469
endif