From 56d355414cbfef92b39af6830932e7f1487b03b9 Mon Sep 17 00:00:00 2001 From: px4dev Date: Tue, 13 Aug 2013 00:34:11 -0700 Subject: Fix handling of board config files. Treat CONFIG_BOARD like CONFIG_ARCH in the toolchain configuration. --- makefiles/toolchain_gnu-arm-eabi.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'makefiles/toolchain_gnu-arm-eabi.mk') diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index 3f4d3371a..9fd2dd516 100644 --- a/makefiles/toolchain_gnu-arm-eabi.mk +++ b/makefiles/toolchain_gnu-arm-eabi.mk @@ -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) \ -- cgit v1.2.3