Skip to content
Snippets Groups Projects
Commit 5e2d6761 authored by px4dev's avatar px4dev
Browse files

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

parent c4498ce9
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,6 @@
# Configure the toolchain
#
CONFIG_ARCH = CORTEXM4F
CONFIG_BOARD = PX4FMU_V1
include $(PX4_MK_DIR)/toolchain_gnu-arm-eabi.mk
......@@ -6,5 +6,6 @@
# Configure the toolchain
#
CONFIG_ARCH = CORTEXM3
CONFIG_BOARD = PX4IO_V1
include $(PX4_MK_DIR)/toolchain_gnu-arm-eabi.mk
......@@ -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))
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment