forked from Archive/PX4-Autopilot
Remove our depdenency on CONFIG_ARCH_BOARD_* coming from <nuttx/config.h>
This commit is contained in:
parent
c4498ce9a3
commit
5e2d676173
|
@ -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))
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue