Fix handling of board config files. Treat CONFIG_BOARD like CONFIG_ARCH in the toolchain configuration.

This commit is contained in:
px4dev
2013-08-13 00:34:11 -07:00
parent b6676f6cb8
commit 56d355414c
3 changed files with 10 additions and 5 deletions
+7
View File
@@ -85,6 +85,13 @@ ifeq ($(ARCHCPUFLAGS),)
$(error Must set CONFIG_ARCH to one of CORTEXM4F, CORTEXM4 or CORTEXM3)
endif
# Set the board flags
#
ifeq ($(CONFIG_BOARD),)
$(error Board config does not define CONFIG_BOARD)
endif
ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD)
# optimisation flags
#
ARCHOPTIMIZATION = $(MAXOPTIMIZATION) \