1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Adding board scratch space.

- Including ability to define custom defaults as char[] that is baked into the build
- removed unnecessary size of custom defaults header parsing (defines provided by build process or in board.h for devs).
This commit is contained in:
blckmn 2022-10-23 12:43:31 +11:00
parent ea45f9a5b9
commit b6b76d1b88
9 changed files with 31 additions and 55 deletions

View file

@ -449,6 +449,12 @@ SRC += $(MSC_SRC)
endif
# end target specific make file checks
ifneq ($(BOARD),)
SRC += board/$(BOARD)/board.c
INCLUDE_DIRS += $(ROOT)/src/main/board/$(BOARD)
TARGET_FLAGS := -D'__BOARD__="$(BOARD)"' $(TARGET_FLAGS)
endif
# Search path and source files for the ST stdperiph library
VPATH := $(VPATH):$(STDPERIPH_DIR)/src