mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
build: added ERLE build type
This commit is contained in:
parent
74ee70d463
commit
0b6c810a6e
@ -38,6 +38,10 @@ ifeq ($(HAL_BOARD),HAL_BOARD_LINUX)
|
|||||||
include $(MK_DIR)/board_linux.mk
|
include $(MK_DIR)/board_linux.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAL_BOARD),HAL_BOARD_ERLE)
|
||||||
|
include $(MK_DIR)/board_linux.mk
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
||||||
include $(MK_DIR)/board_px4.mk
|
include $(MK_DIR)/board_px4.mk
|
||||||
endif
|
endif
|
||||||
|
@ -138,6 +138,10 @@ ifneq ($(findstring linux, $(MAKECMDGOALS)),)
|
|||||||
HAL_BOARD = HAL_BOARD_LINUX
|
HAL_BOARD = HAL_BOARD_LINUX
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(findstring erle, $(MAKECMDGOALS)),)
|
||||||
|
HAL_BOARD = HAL_BOARD_ERLE
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
||||||
HAL_BOARD = HAL_BOARD_VRBRAIN
|
HAL_BOARD = HAL_BOARD_VRBRAIN
|
||||||
endif
|
endif
|
||||||
|
@ -27,6 +27,10 @@ linux: HAL_BOARD = HAL_BOARD_LINUX
|
|||||||
linux: TOOLCHAIN = NATIVE
|
linux: TOOLCHAIN = NATIVE
|
||||||
linux: all
|
linux: all
|
||||||
|
|
||||||
|
erle: HAL_BOARD = HAL_BOARD_ERLE
|
||||||
|
erle: TOOLCHAIN = NATIVE
|
||||||
|
erle: all
|
||||||
|
|
||||||
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
||||||
empty: TOOLCHAIN = AVR
|
empty: TOOLCHAIN = AVR
|
||||||
empty: all
|
empty: all
|
||||||
@ -40,7 +44,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 vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrubrain-v51 vrhero-v10
|
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple linux vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrubrain-v51 vrhero-v10 erle
|
||||||
|
|
||||||
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
Block a user