Remove our depdenency on CONFIG_ARCH_BOARD_* coming from <nuttx/config.h>

This commit is contained in:
px4dev 2013-08-12 21:57:11 -07:00
parent c4498ce9a3
commit 5e2d676173
3 changed files with 6 additions and 0 deletions

View File

@ -6,5 +6,6 @@
# Configure the toolchain
#
CONFIG_ARCH = CORTEXM4F
CONFIG_BOARD = PX4FMU_V1
include $(PX4_MK_DIR)/toolchain_gnu-arm-eabi.mk

View File

@ -6,5 +6,6 @@
# Configure the toolchain
#
CONFIG_ARCH = CORTEXM3
CONFIG_BOARD = PX4IO_V1
include $(PX4_MK_DIR)/toolchain_gnu-arm-eabi.mk

View File

@ -154,6 +154,10 @@ $(error Config $(CONFIG) references board $(BOARD), but no board definition file
endif
export BOARD
include $(BOARD_FILE)
ifeq ($(CONFIG_BOARD),)
$(error Board config for $(BOARD) does not define CONFIG_BOARD)
endif
EXTRADEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD)
$(info % BOARD = $(BOARD))
#