mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 18:23:34 +08:00
Remove our depdenency on CONFIG_ARCH_BOARD_* coming from <nuttx/config.h>
This commit is contained in:
@@ -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))
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user