VRBRAIN / vrbrain_targets: updated makefile for all VirtualRobotix boards

This commit is contained in:
LukeMike 2016-07-05 17:54:51 +02:00 committed by Andrew Tridgell
parent f9e1235593
commit cab1acee46

View File

@ -1,467 +1,264 @@
# VRBRAIN build is via external build system # VRBRAIN build is via external build system
ifneq ($(VRBRAIN_ROOT),) ifneq ($(VRBRAIN_ROOT),)
$(error VRBRAIN_ROOT found in config.mk - Please see http://dev.ardupilot.org/wiki/git-submodules/)
# cope with relative paths endif
ifeq ($(wildcard $(VRBRAIN_ROOT)/nuttx-configs),)
VRBRAIN_ROOT := $(shell cd $(SKETCHBOOK)/$(VRBRAIN_ROOT) && pwd) ifneq ($(NUTTX_SRC),)
endif $(error NUTTX_SRC found in config.mk - Please see http://dev.ardupilot.org/wiki/git-submodules/)
endif
# check it is a valid VRBRAIN Firmware tree
ifeq ($(wildcard $(VRBRAIN_ROOT)/nuttx-configs),) ifneq ($(UAVCAN_DIR),)
$(error ERROR: VRBRAIN_ROOT not set correctly - no nuttx-configs directory found) $(error UAVCAN_DIR found in config.mk - Please see http://dev.ardupilot.org/wiki/git-submodules/)
endif endif
# default to VRBRAIN NuttX above the VRBRAIN Firmware tree # these can be overridden in developer.mk
ifeq ($(VRBRAIN_NUTTX_SRC),) VRBRAINFIRMWARE_DIRECTORY ?= $(SKETCHBOOK)/modules/PX4Firmware
VRBRAIN_NUTTX_SRC := $(shell cd $(VRBRAIN_ROOT)/NuttX/nuttx && pwd)/ VRBRAINNUTTX_DIRECTORY ?= $(SKETCHBOOK)/modules/PX4NuttX
endif UAVCAN_DIRECTORY ?= $(SKETCHBOOK)/modules/uavcan
# cope with relative paths for VRBRAIN_NUTTX_SRC VRBRAIN_ROOT := $(shell cd $(VRBRAINFIRMWARE_DIRECTORY) && pwd)
ifeq ($(wildcard $(VRBRAIN_NUTTX_SRC)/configs),) NUTTX_ROOT := $(shell cd $(VRBRAINNUTTX_DIRECTORY) && pwd)
VRBRAIN_NUTTX_SRC := $(shell cd $(SKETCHBOOK)/$(VRBRAIN_NUTTX_SRC) && pwd)/ NUTTX_SRC := $(NUTTX_ROOT)/nuttx/
endif UAVCAN_DIR=$(shell cd $(UAVCAN_DIRECTORY) && pwd)/
ifeq ($(wildcard $(VRBRAIN_NUTTX_SRC)configs),) # warn if user has old PX4Firmware or PX4NuttX trees
$(error ERROR: VRBRAIN_NUTTX_SRC not set correctly - no configs directory found) ifneq ($(wildcard $(SKETCHBOOK)/../PX4Firmware),)
endif $(warning *** You have an old PX4Firmware tree - see http://dev.ardupilot.com/wiki/git-submodules/)
endif
ifneq ($(wildcard $(SKETCHBOOK)/../PX4NuttX),)
$(warning *** You have an old PX4NuttX tree - see http://dev.ardupilot.com/wiki/git-submodules/)
endif
ifneq ($(wildcard $(SKETCHBOOK)/../uavcan),)
$(warning *** You have an old uavcan tree - see http://dev.ardupilot.com/wiki/git-submodules/)
endif
# we have different config files for vrbrain_v40, vrbrain_v45, vrbrain_v50, vrbrain_v51, vrbrain_v52, vrubrain_v51, vrubrain_v52 and vrhero_v10
VRBRAIN_MK_DIR=$(SRCROOT)/$(MK_DIR)/VRBRAIN NUTTX_GIT_VERSION ?= $(shell cd $(NUTTX_SRC) && git rev-parse HEAD | cut -c1-8)
PX4_GIT_VERSION ?= $(shell cd $(VRBRAIN_ROOT) && git rev-parse HEAD | cut -c1-8)
VRBRAIN_VB40_CONFIG_FILE=config_vrbrain-v40_APM.mk
VRBRAIN_VB45_CONFIG_FILE=config_vrbrain-v45_APM.mk EXTRAFLAGS += -DNUTTX_GIT_VERSION="\"$(NUTTX_GIT_VERSION)\""
VRBRAIN_VB45P_CONFIG_FILE=config_vrbrain-v45P_APM.mk EXTRAFLAGS += -DPX4_GIT_VERSION="\"$(PX4_GIT_VERSION)\""
VRBRAIN_VB50_CONFIG_FILE=config_vrbrain-v50_APM.mk EXTRAFLAGS += -DUAVCAN=1
VRBRAIN_VB51_CONFIG_FILE=config_vrbrain-v51_APM.mk
VRBRAIN_VB51P_CONFIG_FILE=config_vrbrain-v51P_APM.mk # Add missing parts from libc and libstdc++
VRBRAIN_VB51PRO_CONFIG_FILE=config_vrbrain-v51Pro_APM.mk EXTRAFLAGS += -DHAVE_STD_NULLPTR_T=0
VRBRAIN_VB51PROP_CONFIG_FILE=config_vrbrain-v51ProP_APM.mk
VRBRAIN_VB52_CONFIG_FILE=config_vrbrain-v52_APM.mk EXTRAFLAGS += -I$(BUILDROOT)/libraries/GCS_MAVLink/include/mavlink
VRBRAIN_VB52P_CONFIG_FILE=config_vrbrain-v52P_APM.mk
VRBRAIN_VB52PRO_CONFIG_FILE=config_vrbrain-v52Pro_APM.mk # we have different config files for vrbrain_v52, vrbrain_v54
VRBRAIN_VB52PROP_CONFIG_FILE=config_vrbrain-v52ProP_APM.mk VRBRAIN_MK_DIR=$(MK_DIR)/VRBRAIN
VRBRAIN_VU51_CONFIG_FILE=config_vrubrain-v51_APM.mk
VRBRAIN_VU51P_CONFIG_FILE=config_vrubrain-v51P_APM.mk VRBRAIN_V51_CONFIG_FILE=config_vrbrain-v51_APM.mk
VRBRAIN_VU52_CONFIG_FILE=config_vrubrain-v52_APM.mk VRBRAIN_V52_CONFIG_FILE=config_vrbrain-v52_APM.mk
VRBRAIN_VU52P_CONFIG_FILE=config_vrubrain-v52P_APM.mk VRBRAIN_V54_CONFIG_FILE=config_vrbrain-v54_APM.mk
VRCORE_V10_CONFIG_FILE=config_vrcore-v10_APM.mk
VRBRAIN_VH10_CONFIG_FILE=config_vrhero-v10_APM.mk VRUBRAIN_V51_CONFIG_FILE=config_vrubrain-v51_APM.mk
SKETCHFLAGS=$(SKETCHLIBINCLUDES) -I$(PWD) -DARDUPILOT_BUILD -DTESTS_MATHLIB_DISABLE -DCONFIG_HAL_BOARD=HAL_BOARD_VRBRAIN -DSKETCHNAME="\\\"$(SKETCH)\\\"" -DSKETCH_MAIN=ArduPilot_main -DAPM_BUILD_DIRECTORY=APM_BUILD_$(SKETCH) SKETCHFLAGS=$(SKETCHLIBINCLUDES) -DARDUPILOT_BUILD -DTESTS_MATHLIB_DISABLE -DCONFIG_HAL_BOARD=HAL_BOARD_VRBRAIN -DSKETCHNAME="\\\"$(SKETCH)\\\"" -DSKETCH_MAIN=ArduPilot_main -DAPM_BUILD_DIRECTORY=APM_BUILD_$(SKETCH)
WARNFLAGS = -Wall -Wextra -Wlogical-op -Wno-redundant-decls -Wno-psabi -Wno-packed -Wno-unknown-pragmas WARNFLAGS = -Wall -Wextra -Wlogical-op -Werror -Wno-unknown-pragmas -Wno-redundant-decls -Wno-psabi -Wno-packed -Wno-error=double-promotion -Wno-error=unused-variable -Wno-error=reorder -Wno-error=float-equal -Wno-error=pmf-conversions -Wno-error=missing-declarations -Wno-error=unused-function
OPTFLAGS = -fsingle-precision-constant
# Hardcoded libraries/AP_Common/missing/cmath defines in "make" to retain the current behavior
EXTRAFLAGS += -DHAVE_CMATH_ISFINITE -DNEED_CMATH_ISFINITE_STD_NAMESPACE # avoid VRBRAIN submodules
export GIT_SUBMODULES_ARE_EVIL = 1
VRBRAIN_MAKE = $(v) make -C $(SKETCHBOOK) -f $(VRBRAIN_ROOT)/Makefile EXTRADEFINES="$(SKETCHFLAGS) $(WARNFLAGS) "'$(EXTRAFLAGS)' APM_MODULE_DIR=$(SKETCHBOOK) SKETCHBOOK=$(SKETCHBOOK) CCACHE=$(CCACHE) VRBRAIN_ROOT=$(VRBRAIN_ROOT) VRBRAIN_NUTTX_SRC=$(VRBRAIN_NUTTX_SRC) MAXOPTIMIZATION="-Os"
VRBRAIN_MAKE_ARCHIVES = make -C $(VRBRAIN_ROOT) VRBRAIN_NUTTX_SRC=$(VRBRAIN_NUTTX_SRC) CCACHE=$(CCACHE) archives MAXOPTIMIZATION="-Os" PYTHONPATH=$(SKETCHBOOK)/mk/VRBRAIN/Tools/genmsg/src:$(SKETCHBOOK)/mk/VRBRAIN/Tools/gencpp/src
export PYTHONPATH
.PHONY: module_mk
module_mk: VRBRAIN_MAKE = $(v)+ GIT_SUBMODULES_ARE_EVIL=1 ARDUPILOT_BUILD=1 $(MAKE) -C $(SKETCHBOOK) -f $(VRBRAIN_ROOT)/Makefile.make EXTRADEFINES="$(SKETCHFLAGS) $(WARNFLAGS) $(OPTFLAGS) "'$(EXTRAFLAGS)' APM_MODULE_DIR=$(SKETCHBOOK) SKETCHBOOK=$(SKETCHBOOK) CCACHE=$(CCACHE) VRBRAIN_ROOT=$(VRBRAIN_ROOT) NUTTX_SRC=$(NUTTX_SRC) MAXOPTIMIZATION="-Os" UAVCAN_DIR=$(UAVCAN_DIR)
$(RULEHDR) VRBRAIN_MAKE_ARCHIVES = $(MAKE) -C $(VRBRAIN_ROOT) -f $(VRBRAIN_ROOT)/Makefile.make NUTTX_SRC=$(NUTTX_SRC) CCACHE=$(CCACHE) archives MAXOPTIMIZATION="-Os"
$(v) echo "# Auto-generated file - do not edit" > $(SKETCHBOOK)/module.mk.new
$(v) echo "MODULE_COMMAND = ArduPilot" >> $(SKETCHBOOK)/module.mk.new HASHADDER_FLAGS += --ardupilot "$(SKETCHBOOK)"
$(v) echo "SRCS = Build.$(SKETCH)/$(SKETCH).cpp $(SKETCHLIBSRCSRELATIVE)" >> $(SKETCHBOOK)/module.mk.new
$(v) echo "MODULE_STACKSIZE = 4096" >> $(SKETCHBOOK)/module.mk.new ifneq ($(wildcard $(VRBRAIN_ROOT)),)
$(v) cmp $(SKETCHBOOK)/module.mk $(SKETCHBOOK)/module.mk.new 2>/dev/null || mv $(SKETCHBOOK)/module.mk.new $(SKETCHBOOK)/module.mk HASHADDER_FLAGS += --px4 "$(VRBRAIN_ROOT)/"
$(v) rm -f $(SKETCHBOOK)/module.mk.new endif
ifneq ($(wildcard $(NUTTX_SRC)/..),)
vrbrain-v40: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v40.export $(SKETCHCPP) module_mk HASHADDER_FLAGS += --nuttx "$(NUTTX_SRC)../"
$(RULEHDR) endif
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB40_CONFIG_FILE) HASHADDER_FLAGS += --uavcan "$(UAVCAN_DIR)"
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB40_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrbrain-v40_APM .PHONY: module_mk
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB40_CONFIG_FILE) module_mk:
$(v) rm -f $(SKETCH)-vrbrain-v40.vrx $(v) echo "Building $(SKETCHBOOK)/module.mk"
$(v) rm -f $(SKETCH)-vrbrain-v40.hex $(RULEHDR)
$(v) rm -f $(SKETCH)-vrbrain-v40.bin $(v) echo "# Auto-generated file - do not edit" > $(SKETCHBOOK)/module.mk.new
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v40_APM.vrx $(SKETCH)-vrbrain-v40.vrx $(v) echo "MODULE_COMMAND = ArduPilot" >> $(SKETCHBOOK)/module.mk.new
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v40_APM.hex $(SKETCH)-vrbrain-v40.hex $(v) echo "SRCS = $(subst $(SKETCHBOOK)/,,$(wildcard $(SRCROOT)/*.cpp)) $(SKETCHLIBSRCSRELATIVE)" >> $(SKETCHBOOK)/module.mk.new
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v40_APM.bin $(SKETCH)-vrbrain-v40.bin $(v) echo "MODULE_STACKSIZE = 4096" >> $(SKETCHBOOK)/module.mk.new
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v40.vrx" $(v) echo "EXTRACXXFLAGS = -Wframe-larger-than=1300" >> $(SKETCHBOOK)/module.mk.new
$(v) cmp $(SKETCHBOOK)/module.mk $(SKETCHBOOK)/module.mk.new 2>/dev/null || mv $(SKETCHBOOK)/module.mk.new $(SKETCHBOOK)/module.mk
vrbrain-v45: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v45.export $(SKETCHCPP) module_mk $(v) rm -f $(SKETCHBOOK)/module.mk.new
$(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB45_CONFIG_FILE) vrbrain-v51: $(BUILDROOT)/make.flags CHECK_MODULES $(MAVLINK_HEADERS) $(VRBRAIN_ROOT)/Archives/vrbrain-v51.export $(SKETCHCPP) module_mk
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB45_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v45_APM $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRBRAIN_V51_CONFIG_FILE)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB45_CONFIG_FILE) $(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_V51_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/nuttx/
$(v) rm -f $(SKETCH)-vrbrain-v45.vrx $(v) $(VRBRAIN_MAKE) vrbrain-v51_APM
$(v) rm -f $(SKETCH)-vrbrain-v45.hex $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRBRAIN_V51_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrbrain-v45.bin $(v) rm -f $(SKETCH)-vrbrain-v51.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v45_APM.vrx $(SKETCH)-vrbrain-v45.vrx $(v) arm-none-eabi-size $(VRBRAIN_ROOT)/Build/vrbrain-v51_APM.build/firmware.elf
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v45_APM.hex $(SKETCH)-vrbrain-v45.hex $(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51_APM.px4 $(SKETCH)-vrbrain-v51.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v45_APM.bin $(SKETCH)-vrbrain-v45.bin $(v) $(SKETCHBOOK)/Tools/scripts/add_git_hashes.py $(HASHADDER_FLAGS) "$(SKETCH)-vrbrain-v51.vrx" "$(SKETCH)-vrbrain-v51.vrx"
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v45.vrx" $(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v51.vrx"
vrbrain-v45P: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v45P.export $(SKETCHCPP) module_mk vrbrain-v52: $(BUILDROOT)/make.flags CHECK_MODULES $(MAVLINK_HEADERS) $(VRBRAIN_ROOT)/Archives/vrbrain-v52.export $(SKETCHCPP) module_mk
$(RULEHDR) $(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB45P_CONFIG_FILE) $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRBRAIN_V52_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB45P_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_V52_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/nuttx/
$(v) $(VRBRAIN_MAKE) vrbrain-v45P_APM $(v) $(VRBRAIN_MAKE) vrbrain-v52_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB45P_CONFIG_FILE) $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRBRAIN_V52_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrbrain-v45P.vrx $(v) rm -f $(SKETCH)-vrbrain-v52.vrx
$(v) rm -f $(SKETCH)-vrbrain-v45P.hex $(v) arm-none-eabi-size $(VRBRAIN_ROOT)/Build/vrbrain-v52_APM.build/firmware.elf
$(v) rm -f $(SKETCH)-vrbrain-v45P.bin $(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52_APM.px4 $(SKETCH)-vrbrain-v52.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v45P_APM.vrx $(SKETCH)-vrbrain-v45P.vrx $(v) $(SKETCHBOOK)/Tools/scripts/add_git_hashes.py $(HASHADDER_FLAGS) "$(SKETCH)-vrbrain-v52.vrx" "$(SKETCH)-vrbrain-v52.vrx"
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v45P_APM.hex $(SKETCH)-vrbrain-v45P.hex $(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v52.vrx"
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v45P_APM.bin $(SKETCH)-vrbrain-v45P.bin
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v45P.vrx" vrbrain-v54: $(BUILDROOT)/make.flags CHECK_MODULES $(MAVLINK_HEADERS) $(VRBRAIN_ROOT)/Archives/vrbrain-v54.export $(SKETCHCPP) module_mk
$(RULEHDR)
vrbrain-v50: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v50.export $(SKETCHCPP) module_mk $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRBRAIN_V54_CONFIG_FILE)
$(RULEHDR) $(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_V54_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/nuttx/
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB50_CONFIG_FILE) $(v) $(VRBRAIN_MAKE) vrbrain-v54_APM
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB50_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRBRAIN_V54_CONFIG_FILE)
$(v) $(VRBRAIN_MAKE) vrbrain-v50_APM $(v) rm -f $(SKETCH)-vrbrain-v54.vrx
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB50_CONFIG_FILE) $(v) arm-none-eabi-size $(VRBRAIN_ROOT)/Build/vrbrain-v54_APM.build/firmware.elf
$(v) rm -f $(SKETCH)-vrbrain-v50.vrx $(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v54_APM.px4 $(SKETCH)-vrbrain-v54.vrx
$(v) rm -f $(SKETCH)-vrbrain-v50.hex $(v) $(SKETCHBOOK)/Tools/scripts/add_git_hashes.py $(HASHADDER_FLAGS) "$(SKETCH)-vrbrain-v54.vrx" "$(SKETCH)-vrbrain-v54.vrx"
$(v) rm -f $(SKETCH)-vrbrain-v50.bin $(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v54.vrx"
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v50_APM.vrx $(SKETCH)-vrbrain-v50.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v50_APM.hex $(SKETCH)-vrbrain-v50.hex vrcore-v10: $(BUILDROOT)/make.flags CHECK_MODULES $(MAVLINK_HEADERS) $(VRBRAIN_ROOT)/Archives/vrcore-v10.export $(SKETCHCPP) module_mk
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v50_APM.bin $(SKETCH)-vrbrain-v50.bin $(RULEHDR)
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v50.vrx" $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRCORE_V10_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRCORE_V10_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/nuttx/
vrbrain-v51: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v51.export $(SKETCHCPP) module_mk $(v) $(VRBRAIN_MAKE) vrcore-v10_APM
$(RULEHDR) $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRCORE_V10_CONFIG_FILE)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51_CONFIG_FILE) $(v) rm -f $(SKETCH)-vrcore-v10.vrx
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB51_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(v) arm-none-eabi-size $(VRBRAIN_ROOT)/Build/vrcore-v10_APM.build/firmware.elf
$(v) $(VRBRAIN_MAKE) vrbrain-v51_APM $(v) cp $(VRBRAIN_ROOT)/Images/vrcore-v10_APM.px4 $(SKETCH)-vrcore-v10.vrx
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51_CONFIG_FILE) $(v) $(SKETCHBOOK)/Tools/scripts/add_git_hashes.py $(HASHADDER_FLAGS) "$(SKETCH)-vrcore-v10.vrx" "$(SKETCH)-vrcore-v10.vrx"
$(v) rm -f $(SKETCH)-vrbrain-v51.vrx $(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrcore-v10.vrx"
$(v) rm -f $(SKETCH)-vrbrain-v51.hex
$(v) rm -f $(SKETCH)-vrbrain-v51.bin vrubrain-v51: $(BUILDROOT)/make.flags CHECK_MODULES $(MAVLINK_HEADERS) $(VRBRAIN_ROOT)/Archives/vrubrain-v51.export $(SKETCHCPP) module_mk
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51_APM.vrx $(SKETCH)-vrbrain-v51.vrx $(RULEHDR)
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51_APM.hex $(SKETCH)-vrbrain-v51.hex $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRUBRAIN_V51_CONFIG_FILE)
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51_APM.bin $(SKETCH)-vrbrain-v51.bin $(v) cp $(VRBRAIN_MK_DIR)/$(VRUBRAIN_V51_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/nuttx/
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v51.vrx" $(v) $(VRBRAIN_MAKE) vrubrain-v51_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRUBRAIN_V51_CONFIG_FILE)
vrbrain-v51P: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v51P.export $(SKETCHCPP) module_mk $(v) rm -f $(SKETCH)-vrubrain-v51.vrx
$(RULEHDR) $(v) arm-none-eabi-size $(VRBRAIN_ROOT)/Build/vrubrain-v51_APM.build/firmware.elf
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51P_CONFIG_FILE) $(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51_APM.px4 $(SKETCH)-vrubrain-v51.vrx
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB51P_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(v) $(SKETCHBOOK)/Tools/scripts/add_git_hashes.py $(HASHADDER_FLAGS) "$(SKETCH)-vrubrain-v51.vrx" "$(SKETCH)-vrubrain-v51.vrx"
$(v) $(VRBRAIN_MAKE) vrbrain-v51P_APM $(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrubrain-v51.vrx"
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51P_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrbrain-v51P.vrx vrubrain-v52: $(BUILDROOT)/make.flags CHECK_MODULES $(MAVLINK_HEADERS) $(VRBRAIN_ROOT)/Archives/vrubrain-v52.export $(SKETCHCPP) module_mk
$(v) rm -f $(SKETCH)-vrbrain-v51P.hex $(RULEHDR)
$(v) rm -f $(SKETCH)-vrbrain-v51P.bin $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRUBRAIN_V52_CONFIG_FILE)
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51P_APM.vrx $(SKETCH)-vrbrain-v51P.vrx $(v) cp $(VRBRAIN_MK_DIR)/$(VRUBRAIN_V52_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/nuttx/
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51P_APM.hex $(SKETCH)-vrbrain-v51P.hex $(v) $(VRBRAIN_MAKE) vrubrain-v52_APM
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51P_APM.bin $(SKETCH)-vrbrain-v51P.bin $(v) rm -f $(VRBRAIN_ROOT)/makefiles/nuttx/$(VRUBRAIN_V52_CONFIG_FILE)
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v51P.vrx" $(v) rm -f $(SKETCH)-vrubrain-v52.vrx
$(v) arm-none-eabi-size $(VRBRAIN_ROOT)/Build/vrubrain-v52_APM.build/firmware.elf
vrbrain-v51Pro: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v51Pro.export $(SKETCHCPP) module_mk $(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52_APM.px4 $(SKETCH)-vrubrain-v52.vrx
$(RULEHDR) $(v) $(SKETCHBOOK)/Tools/scripts/add_git_hashes.py $(HASHADDER_FLAGS) "$(SKETCH)-vrubrain-v52.vrx" "$(SKETCH)-vrubrain-v52.vrx"
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51PRO_CONFIG_FILE) $(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrubrain-v52.vrx"
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB51PRO_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrbrain-v51Pro_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51PRO_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrbrain-v51Pro.vrx vrbrainStd: vrbrain-v51 vrbrain-v52 vrbrain-v54 vrcore-v10 vrubrain-v51 vrubrain-v52
$(v) rm -f $(SKETCH)-vrbrain-v51Pro.hex vrbrainStdP:
$(v) rm -f $(SKETCH)-vrbrain-v51Pro.bin vrbrainPro:
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51Pro_APM.vrx $(SKETCH)-vrbrain-v51Pro.vrx vrbrainProP:
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51Pro_APM.hex $(SKETCH)-vrbrain-v51Pro.hex
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51Pro_APM.bin $(SKETCH)-vrbrain-v51Pro.bin vrbrain: vrbrainStd vrbrainStdP vrbrainPro vrbrainProP
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v51Pro.vrx"
vrbrain-clean: clean CHECK_MODULES vrbrain-archives-clean vrbrain-cleandep
vrbrain-v51ProP: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v51ProP.export $(SKETCHCPP) module_mk $(v) /bin/rm -rf $(VRBRAIN_ROOT)/makefiles/build $(VRBRAIN_ROOT)/Build $(VRBRAIN_ROOT)/Images/*.px4 $(VRBRAIN_ROOT)/Images/*.bin
$(RULEHDR) $(v) /bin/rm -rf $(VRBRAIN_ROOT)/src/modules/uORB/topics $(VRBRAIN_ROOT)/src/platforms/nuttx/px4_messages
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51PROP_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB51PROP_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ vrbrain-cleandep: clean
$(v) $(VRBRAIN_MAKE) vrbrain-v51ProP_APM $(v) mkdir -p $(VRBRAIN_ROOT)/Build
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB51PROP_CONFIG_FILE) $(v) find $(VRBRAIN_ROOT)/Build -type f -name '*.d' | xargs rm -f
$(v) rm -f $(SKETCH)-vrbrain-v51ProP.vrx $(v) find $(UAVCAN_DIRECTORY) -type f -name '*.d' | xargs rm -f
$(v) rm -f $(SKETCH)-vrbrain-v51ProP.hex $(v) find $(SKETCHBOOK)/$(SKETCH) -type f -name '*.d' | xargs rm -f
$(v) rm -f $(SKETCH)-vrbrain-v51ProP.bin
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51ProP_APM.vrx $(SKETCH)-vrbrain-v51ProP.vrx vrbrain-v51-upload: vrbrain-v51
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51ProP_APM.hex $(SKETCH)-vrbrain-v51ProP.hex $(RULEHDR)
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v51ProP_APM.bin $(SKETCH)-vrbrain-v51ProP.bin $(v) $(VRBRAIN_MAKE) vrbrain-v51_APM upload
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v51ProP.vrx"
vrbrain-v52-upload: vrbrain-v52
vrbrain-v52: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v52.export $(SKETCHCPP) module_mk $(RULEHDR)
$(RULEHDR) $(v) $(VRBRAIN_MAKE) vrbrain-v52_APM upload
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB52_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ vrbrain-v54-upload: vrbrain-v54
$(v) $(VRBRAIN_MAKE) vrbrain-v52_APM $(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52_CONFIG_FILE) $(v) $(VRBRAIN_MAKE) vrbrain-v54_APM upload
$(v) rm -f $(SKETCH)-vrbrain-v52.vrx
$(v) rm -f $(SKETCH)-vrbrain-v52.hex vrcore-v10-upload: vrcore-v10
$(v) rm -f $(SKETCH)-vrbrain-v52.bin $(RULEHDR)
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52_APM.vrx $(SKETCH)-vrbrain-v52.vrx $(v) $(VRBRAIN_MAKE) vrcore-v10_APM upload
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52_APM.hex $(SKETCH)-vrbrain-v52.hex
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52_APM.bin $(SKETCH)-vrbrain-v52.bin vrubrain-v51-upload: vrubrain-v51
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v52.vrx" $(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrubrain-v51_APM upload
vrbrain-v52P: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v52P.export $(SKETCHCPP) module_mk
$(RULEHDR) vrubrain-v52-upload: vrubrain-v52
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52P_CONFIG_FILE) $(RULEHDR)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB52P_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(v) $(VRBRAIN_MAKE) vrubrain-v52_APM upload
$(v) $(VRBRAIN_MAKE) vrbrain-v52P_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52P_CONFIG_FILE) vrbrain-upload: vrbrain-v52-upload
$(v) rm -f $(SKETCH)-vrbrain-v52P.vrx
$(v) rm -f $(SKETCH)-vrbrain-v52P.hex vrbrain-archives-clean:
$(v) rm -f $(SKETCH)-vrbrain-v52P.bin $(v) /bin/rm -rf $(VRBRAIN_ROOT)/Archives
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52P_APM.vrx $(SKETCH)-vrbrain-v52P.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52P_APM.hex $(SKETCH)-vrbrain-v52P.hex # These targets can't run in parallel because they all need to generate a tool
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52P_APM.bin $(SKETCH)-vrbrain-v52P.bin # to generate the config.h inside them. This could trigger races if done in
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v52P.vrx" # parallel, trying to generate the tool and replacing it while the header is already
# being generated
vrbrain-v52Pro: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v52Pro.export $(SKETCHCPP) module_mk #
$(RULEHDR) # We could serialize inside PX4Firmware, but it's easier to serialize here
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52PRO_CONFIG_FILE) # while maintaining the rest of the build parallelized
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB52PRO_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrbrain-v52Pro_APM .NOTPARALLEL: \
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52PRO_CONFIG_FILE) $(VRBRAIN_ROOT)/Archives/vrbrain-v51.export \
$(v) rm -f $(SKETCH)-vrbrain-v52Pro.vrx $(VRBRAIN_ROOT)/Archives/vrbrain-v52.export \
$(v) rm -f $(SKETCH)-vrbrain-v52Pro.hex $(VRBRAIN_ROOT)/Archives/vrbrain-v54.export \
$(v) rm -f $(SKETCH)-vrbrain-v52Pro.bin $(VRBRAIN_ROOT)/Archives/vrcore-v10.export \
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52Pro_APM.vrx $(SKETCH)-vrbrain-v52Pro.vrx $(VRBRAIN_ROOT)/Archives/vrubrain-v51.export \
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52Pro_APM.hex $(SKETCH)-vrbrain-v52Pro.hex $(VRBRAIN_ROOT)/Archives/vrubrain-v52.export
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52Pro_APM.bin $(SKETCH)-vrbrain-v52Pro.bin
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v52Pro.vrx" $(VRBRAIN_ROOT)/Archives/vrbrain-v51.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES) BOARDS="vrbrain-v51"
vrbrain-v52ProP: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrbrain-v52ProP.export $(SKETCHCPP) module_mk
$(RULEHDR) $(VRBRAIN_ROOT)/Archives/vrbrain-v52.export:
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52PROP_CONFIG_FILE) $(v) $(VRBRAIN_MAKE_ARCHIVES) BOARDS="vrbrain-v52"
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VB52PROP_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrbrain-v52ProP_APM $(VRBRAIN_ROOT)/Archives/vrbrain-v54.export:
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VB52PROP_CONFIG_FILE) $(v) $(VRBRAIN_MAKE_ARCHIVES) BOARDS="vrbrain-v54"
$(v) rm -f $(SKETCH)-vrbrain-v52ProP.vrx
$(v) rm -f $(SKETCH)-vrbrain-v52ProP.hex $(VRBRAIN_ROOT)/Archives/vrcore-v10.export:
$(v) rm -f $(SKETCH)-vrbrain-v52ProP.bin $(v) $(VRBRAIN_MAKE_ARCHIVES) BOARDS="vrcore-v10"
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52ProP_APM.vrx $(SKETCH)-vrbrain-v52ProP.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52ProP_APM.hex $(SKETCH)-vrbrain-v52ProP.hex $(VRBRAIN_ROOT)/Archives/vrubrain-v51.export:
$(v) cp $(VRBRAIN_ROOT)/Images/vrbrain-v52ProP_APM.bin $(SKETCH)-vrbrain-v52ProP.bin $(v) $(VRBRAIN_MAKE_ARCHIVES) BOARDS="vrubrain-v51"
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrbrain-v52ProP.vrx"
$(VRBRAIN_ROOT)/Archives/vrubrain-v52.export:
vrubrain-v51: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrubrain-v51.export $(SKETCHCPP) module_mk $(v) $(VRBRAIN_MAKE_ARCHIVES) BOARDS="vrubrain-v52"
$(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU51_CONFIG_FILE) vrbrain-archives:
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VU51_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ $(v) $(PX4_MAKE_ARCHIVES) BOARDS="vrbrain-v51 vrbrain-v52 vrbrain-v54 vrcore-v10 vrubrain-v51 vrubrain-v52"
$(v) $(VRBRAIN_MAKE) vrubrain-v51_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU51_CONFIG_FILE) vrbrain-info: module_mk
$(v) rm -f $(SKETCH)-vrubrain-v51.vrx @echo "VRBRAINFIRMWARE_DIRECTORY $(VRBRAINFIRMWARE_DIRECTORY)"
$(v) rm -f $(SKETCH)-vrubrain-v51.hex @echo "VRBRAINNUTTX_DIRECTORY $(VRBRAINNUTTX_DIRECTORY)"
$(v) rm -f $(SKETCH)-vrubrain-v51.bin @echo "NUTTX_ROOT $(NUTTX_ROOT)"
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51_APM.vrx $(SKETCH)-vrubrain-v51.vrx @echo "VRBRAIN_ROOT $(VRBRAIN_ROOT)"
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51_APM.hex $(SKETCH)-vrubrain-v51.hex @echo "NUTTX_SRC $(NUTTX_SRC)"
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51_APM.bin $(SKETCH)-vrubrain-v51.bin @echo "SKETCHLIBS $(SKETCHLIBS)"
$(v) echo "MICRO VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrubrain-v51.vrx" @echo "SKETCHLIBNAMES $(SKETCHLIBNAMES)"
@echo "SKETCHLIBSRCDIRS $(SKETCHLIBSRCDIRS)"
vrubrain-v51P: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrubrain-v51P.export $(SKETCHCPP) module_mk @echo "SKETCHLIBSRCS $(SKETCHLIBSRCS)"
$(RULEHDR) @echo "SKETCHLIBOBJS $(SKETCHLIBOBJS)"
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU51P_CONFIG_FILE) @echo "SKETCHLIBINCLUDES $(SKETCHLIBINCLUDES)"
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VU51P_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/ @echo "SKETCHLIBSRCSRELATIVE $(SKETCHLIBSRCSRELATIVE)"
$(v) $(VRBRAIN_MAKE) vrubrain-v51P_APM @echo "SRCS $(subst $(SKETCHBOOK)/,,$(wildcard $(SRCROOT)/*.cpp))"
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU51P_CONFIG_FILE) @echo "HASHADDER_FLAGS $(HASHADDER_FLAGS)"
$(v) rm -f $(SKETCH)-vrubrain-v51P.vrx
$(v) rm -f $(SKETCH)-vrubrain-v51P.hex
$(v) rm -f $(SKETCH)-vrubrain-v51P.bin
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51P_APM.vrx $(SKETCH)-vrubrain-v51P.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51P_APM.hex $(SKETCH)-vrubrain-v51P.hex
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v51P_APM.bin $(SKETCH)-vrubrain-v51P.bin
$(v) echo "MICRO VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrubrain-v51P.vrx"
vrubrain-v52: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrubrain-v52.export $(SKETCHCPP) module_mk
$(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU52_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VU52_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrubrain-v52_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU52_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrubrain-v52.vrx
$(v) rm -f $(SKETCH)-vrubrain-v52.hex
$(v) rm -f $(SKETCH)-vrubrain-v52.bin
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52_APM.vrx $(SKETCH)-vrubrain-v52.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52_APM.hex $(SKETCH)-vrubrain-v52.hex
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52_APM.bin $(SKETCH)-vrubrain-v52.bin
$(v) echo "MICRO VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrubrain-v52.vrx"
vrubrain-v52P: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrubrain-v52P.export $(SKETCHCPP) module_mk
$(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU52P_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VU52P_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrubrain-v52P_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VU52P_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrubrain-v52P.vrx
$(v) rm -f $(SKETCH)-vrubrain-v52P.hex
$(v) rm -f $(SKETCH)-vrubrain-v52P.bin
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52P_APM.vrx $(SKETCH)-vrubrain-v52P.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52P_APM.hex $(SKETCH)-vrubrain-v52P.hex
$(v) cp $(VRBRAIN_ROOT)/Images/vrubrain-v52P_APM.bin $(SKETCH)-vrubrain-v52P.bin
$(v) echo "MICRO VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrubrain-v52P.vrx"
vrhero-v10: $(BUILDROOT)/make.flags $(VRBRAIN_ROOT)/Archives/vrhero-v10.export $(SKETCHCPP) module_mk
$(RULEHDR)
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VH10_CONFIG_FILE)
$(v) cp $(VRBRAIN_MK_DIR)/$(VRBRAIN_VH10_CONFIG_FILE) $(VRBRAIN_ROOT)/makefiles/
$(v) $(VRBRAIN_MAKE) vrhero-v10_APM
$(v) rm -f $(VRBRAIN_ROOT)/makefiles/$(VRBRAIN_VH10_CONFIG_FILE)
$(v) rm -f $(SKETCH)-vrhero-v10.vrx
$(v) rm -f $(SKETCH)-vrhero-v10.hex
$(v) rm -f $(SKETCH)-vrhero-v10.bin
$(v) cp $(VRBRAIN_ROOT)/Images/vrhero-v10_APM.vrx $(SKETCH)-vrhero-v10.vrx
$(v) cp $(VRBRAIN_ROOT)/Images/vrhero-v10_APM.hex $(SKETCH)-vrhero-v10.hex
$(v) cp $(VRBRAIN_ROOT)/Images/vrhero-v10_APM.bin $(SKETCH)-vrhero-v10.bin
$(v) echo "VRBRAIN $(SKETCH) Firmware is in $(SKETCH)-vrhero-v10.vrx"
vrbrainStd: vrbrain-v45 vrbrain-v51 vrbrain-v52 vrubrain-v51 vrubrain-v52
vrbrainStdP: vrbrain-v45P vrbrain-v51P vrbrain-v52P vrubrain-v51P
vrbrainPro: vrbrain-v51Pro vrbrain-v52Pro
vrbrainProP: vrbrain-v51ProP vrbrain-v52ProP
vrbrain: vrbrainStd vrbrainStdP vrbrainPro vrbrainProP
#vrbrain-clean: clean vrbrain-build-clean vrbrain-archives-clean
vrbrain-clean: clean vrbrain-build-clean
vrbrain-build-clean:
$(v) /bin/rm -rf $(VRBRAIN_ROOT)/makefiles/build $(VRBRAIN_ROOT)/Build
vrbrain-cleandep: clean
$(v) find $(VRBRAIN_ROOT)/Build -type f -name '*.d' | xargs rm -f
vrbrain-v40-upload: vrbrain-v40
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v40_APM upload
vrbrain-v45-upload: vrbrain-v45
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v45_APM upload
vrbrain-v45P-upload: vrbrain-v45P
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v45P_APM upload
vrbrain-v50-upload: vrbrain-v50
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v50_APM upload
vrbrain-v51-upload: vrbrain-v51
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v51_APM upload
vrbrain-v51P-upload: vrbrain-v51P
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v51P_APM upload
vrbrain-v51Pro-upload: vrbrain-v51Pro
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v51Pro_APM upload
vrbrain-v51ProP-upload: vrbrain-v51ProP
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v51ProP_APM upload
vrbrain-v52-upload: vrbrain-v52
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v52_APM upload
vrbrain-v52P-upload: vrbrain-v52P
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v52P_APM upload
vrbrain-v52Pro-upload: vrbrain-v52Pro
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v52Pro_APM upload
vrbrain-v52ProP-upload: vrbrain-v52ProP
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrbrain-v52ProP_APM upload
vrubrain-v51-upload: vrubrain-v51
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrubrain-v51_APM upload
vrubrain-v51P-upload: vrubrain-v51P
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrubrain-v51P_APM upload
vrubrain-v52-upload: vrubrain-v52
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrubrain-v52_APM upload
vrubrain-v52P-upload: vrubrain-v52P
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrubrain-v52P_APM upload
vrhero-v10-upload: vrhero-v10
$(RULEHDR)
$(v) $(VRBRAIN_MAKE) vrhero-v10_APM upload
vrbrain-upload: vrbrain-v40-upload
vrbrain-archives-clean:
$(v) /bin/rm -rf $(VRBRAIN_ROOT)/Archives
$(VRBRAIN_ROOT)/Archives/vrbrain-v40.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v45.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v45P.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v50.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v51.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v51P.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v51Pro.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v51ProP.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v52.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v52P.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v52Pro.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrbrain-v52ProP.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrubrain-v51.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrubrain-v51P.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrubrain-v52.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrubrain-v52P.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
$(VRBRAIN_ROOT)/Archives/vrhero-v10.export:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
vrbrain-archives:
$(v) $(VRBRAIN_MAKE_ARCHIVES)
else
vrbrain_nx:
$(error ERROR: You need to add VRBRAIN_ROOT to your config.mk)
vrbrain-clean: vrbrain
vrbrain-upload: vrbrain
endif