mirror of https://github.com/ArduPilot/ardupilot
mk: new VRBRAIN board definition
This commit is contained in:
parent
d1e4fbf267
commit
01b7bcd05d
|
@ -42,6 +42,10 @@ ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
||||||
include $(MK_DIR)/board_px4.mk
|
include $(MK_DIR)/board_px4.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAL_BOARD),HAL_BOARD_VRBRAIN)
|
||||||
|
include $(MK_DIR)/board_vrbrain.mk
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HAL_BOARD),HAL_BOARD_FLYMAPLE)
|
ifeq ($(HAL_BOARD),HAL_BOARD_FLYMAPLE)
|
||||||
include $(MK_DIR)/board_flymaple.mk
|
include $(MK_DIR)/board_flymaple.mk
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -18,8 +18,17 @@ endif
|
||||||
@echo \# uncomment and fill in the path to Arduino if installed in an exotic location >> $(SKETCHBOOK)/config.mk
|
@echo \# uncomment and fill in the path to Arduino if installed in an exotic location >> $(SKETCHBOOK)/config.mk
|
||||||
@echo \# ARDUINO = /path/to/Arduino >> $(SKETCHBOOK)/config.mk
|
@echo \# ARDUINO = /path/to/Arduino >> $(SKETCHBOOK)/config.mk
|
||||||
@echo >> $(SKETCHBOOK)/config.mk
|
@echo >> $(SKETCHBOOK)/config.mk
|
||||||
|
######################## PX4 ####################################
|
||||||
@echo \# PX4Firmware tree: fill in the path to PX4Firmware repository from github.com/diydrones: >> $(SKETCHBOOK)/config.mk
|
@echo \# PX4Firmware tree: fill in the path to PX4Firmware repository from github.com/diydrones: >> $(SKETCHBOOK)/config.mk
|
||||||
@echo PX4_ROOT=../PX4Firmware >> $(SKETCHBOOK)/config.mk
|
@echo PX4_ROOT=../PX4Firmware >> $(SKETCHBOOK)/config.mk
|
||||||
@echo >> $(SKETCHBOOK)/config.mk
|
@echo >> $(SKETCHBOOK)/config.mk
|
||||||
@echo \# PX4NuttX tree: fill in the path to PX4NuttX repository from github.com/diydrones: >> $(SKETCHBOOK)/config.mk
|
@echo \# PX4NuttX tree: fill in the path to PX4NuttX repository from github.com/diydrones: >> $(SKETCHBOOK)/config.mk
|
||||||
@echo NUTTX_SRC=../PX4NuttX/nuttx >> $(SKETCHBOOK)/config.mk
|
@echo NUTTX_SRC=../PX4NuttX/nuttx >> $(SKETCHBOOK)/config.mk
|
||||||
|
###################### VRBRAIN ##################################
|
||||||
|
@echo \# VRBRAIN Firmware tree: >> $(SKETCHBOOK)/config.mk
|
||||||
|
@echo VRBRAIN_ROOT=../VRBRAINFirmware >> $(SKETCHBOOK)/config.mk
|
||||||
|
@echo >> $(SKETCHBOOK)/config.mk
|
||||||
|
@echo \# VRBRAIN NuttX tree: >> $(SKETCHBOOK)/config.mk
|
||||||
|
@echo VRBRAIN_NUTTX_SRC=../VRBRAINFirmware/NuttX/nuttx >> $(SKETCHBOOK)/config.mk
|
||||||
|
@echo >> $(SKETCHBOOK)/config.mk
|
||||||
|
|
|
@ -72,7 +72,15 @@ ifneq ($(findstring px4, $(MAKECMDGOALS)),)
|
||||||
# when building px4 we need all sources to be inside the sketchbook directory
|
# when building px4 we need all sources to be inside the sketchbook directory
|
||||||
# as the NuttX build system relies on it
|
# as the NuttX build system relies on it
|
||||||
BUILDROOT := $(SKETCHBOOK)/Build.$(SKETCH)
|
BUILDROOT := $(SKETCHBOOK)/Build.$(SKETCH)
|
||||||
else
|
endif
|
||||||
|
|
||||||
|
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
||||||
|
# when building vrbrain we need all sources to be inside the sketchbook directory
|
||||||
|
# as the NuttX build system relies on it
|
||||||
|
BUILDROOT := $(SKETCHBOOK)/Build.$(SKETCH)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BUILDROOT),)
|
||||||
BUILDROOT := $(abspath $(TMPDIR)/$(SKETCH).build)
|
BUILDROOT := $(abspath $(TMPDIR)/$(SKETCH).build)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,8 @@ SKETCHLIBNAMES := $(notdir $(SKETCHLIBS))
|
||||||
SKETCHLIBSRCDIRS := $(SKETCHLIBS) $(addsuffix /utility,$(SKETCHLIBS))
|
SKETCHLIBSRCDIRS := $(SKETCHLIBS) $(addsuffix /utility,$(SKETCHLIBS))
|
||||||
SKETCHLIBSRCS := $(wildcard $(foreach suffix,$(SRCSUFFIXES),$(addsuffix /$(suffix),$(SKETCHLIBSRCDIRS))))
|
SKETCHLIBSRCS := $(wildcard $(foreach suffix,$(SRCSUFFIXES),$(addsuffix /$(suffix),$(SKETCHLIBSRCDIRS))))
|
||||||
SKETCHLIBOBJS := $(addsuffix .o,$(basename $(subst $(SKETCHBOOK),$(BUILDROOT),$(SKETCHLIBSRCS))))
|
SKETCHLIBOBJS := $(addsuffix .o,$(basename $(subst $(SKETCHBOOK),$(BUILDROOT),$(SKETCHLIBSRCS))))
|
||||||
SKETCHLIBINCLUDES := $(addprefix -I,$(SKETCHLIBS))
|
SKETCHLIBINCLUDES := $(addprefix -I,$(SRCROOT))
|
||||||
|
SKETCHLIBINCLUDES += $(addprefix -I,$(SKETCHLIBS))
|
||||||
SKETCHLIBSRCSRELATIVE := $(subst $(SKETCHBOOK)/,,$(SKETCHLIBSRCS))
|
SKETCHLIBSRCSRELATIVE := $(subst $(SKETCHBOOK)/,,$(SKETCHLIBSRCS))
|
||||||
|
|
||||||
ifeq ($(VERBOSE),)
|
ifeq ($(VERBOSE),)
|
||||||
|
|
|
@ -40,7 +40,7 @@ empty: all
|
||||||
|
|
||||||
# cope with copter and hil targets
|
# cope with copter and hil targets
|
||||||
FRAMES = quad tri hexa y6 octa octa-quad heli single
|
FRAMES = quad tri hexa y6 octa octa-quad heli single
|
||||||
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple linux
|
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple linux vrbrain vrbrain-v4 vrbrainv-5 vrhero-v1
|
||||||
|
|
||||||
define frame_template
|
define frame_template
|
||||||
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
||||||
|
|
Loading…
Reference in New Issue