diff --git a/mk/environ.mk b/mk/environ.mk index 23f3952d4f..5eb8c73694 100644 --- a/mk/environ.mk +++ b/mk/environ.mk @@ -160,6 +160,11 @@ HAL_BOARD = HAL_BOARD_LINUX HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_NAVIO endif +ifneq ($(findstring bbbmini, $(MAKECMDGOALS)),) +HAL_BOARD = HAL_BOARD_LINUX +HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_BBBMINI +endif + ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),) HAL_BOARD = HAL_BOARD_VRBRAIN HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_NONE diff --git a/mk/targets.mk b/mk/targets.mk index 01c76a21e2..e90bf39eba 100644 --- a/mk/targets.mk +++ b/mk/targets.mk @@ -45,6 +45,10 @@ navio: HAL_BOARD = HAL_BOARD_LINUX navio: TOOLCHAIN = RPI navio: all +bbbmini: HAL_BOARD = HAL_BOARD_LINUX +bbbmini: TOOLCHAIN = BBONE +bbbmini: all + empty: HAL_BOARD = HAL_BOARD_EMPTY empty: TOOLCHAIN = AVR empty: all @@ -58,7 +62,7 @@ empty: all # cope with copter and hil targets FRAMES = quad tri hexa y6 octa octa-quad heli single obc -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 pxf navio +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 pxf navio bbbmini define frame_template $(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "