2018-01-29 15:27:01 -08:00
|
|
|
# List of all the board related files.
|
2023-02-01 11:41:27 -08:00
|
|
|
BOARDSRC = $(BOARD_DIR)/../board_extra.c
|
2019-06-12 09:54:13 -07:00
|
|
|
|
2023-02-01 11:41:27 -08:00
|
|
|
BOARDCPPSRC = $(BOARD_DIR)/../board_configuration.cpp
|
2018-01-29 15:27:01 -08:00
|
|
|
|
2023-02-01 11:41:27 -08:00
|
|
|
BOARDINC += $(BOARD_DIR)/..
|
2018-01-29 15:27:01 -08:00
|
|
|
|
2023-02-01 11:41:27 -08:00
|
|
|
# Required include directories
|
2019-11-28 23:39:30 -08:00
|
|
|
# Default to a release build - clear EXTRA_PARAMS from cmdline to build debug
|
|
|
|
ifeq ($(EXTRA_PARAMS),)
|
2022-04-18 11:22:05 -07:00
|
|
|
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
|
2019-11-28 23:39:30 -08:00
|
|
|
endif
|
|
|
|
ifeq ($(DEBUG_LEVEL_OPT),)
|
|
|
|
DEBUG_LEVEL_OPT = -O2
|
2018-01-29 15:27:01 -08:00
|
|
|
endif
|
|
|
|
|
2019-03-22 08:38:18 -07:00
|
|
|
ifeq ($(PROMETHEUS_BOARD),405)
|
2022-04-18 11:22:05 -07:00
|
|
|
DDEFS += -DFIRMWARE_ID=\"prometeus405\" -DSHORT_BOARD_NAME=prometheus_405
|
2019-03-22 08:38:18 -07:00
|
|
|
else
|
2022-04-18 11:22:05 -07:00
|
|
|
DDEFS += -DFIRMWARE_ID=\"prometeus469\" -DSHORT_BOARD_NAME=prometheus_469
|
2019-03-22 08:38:18 -07:00
|
|
|
endif
|