diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index af8cc6b97f..1b4100af0f 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -457,17 +457,14 @@ endif all: $(SKETCHELF) $(SKETCHEEP) $(SKETCHHEX) # convenient targets for our supported boards -sitl: HAL_BOARD = "HAL_BOARD_AVR_SITL" -sitl: all +sitl: + make -f Makefile HAL_BOARD=HAL_BOARD_AVR_SITL -apm1: HAL_BOARD = "HAL_BOARD_APM1" -apm1: all +apm1: + make -f Makefile HAL_BOARD=HAL_BOARD_APM1 -apm2: HAL_BOARD = "HAL_BOARD_APM2" -apm2: all - -emptyhal: HAL_BOARD = "HAL_BOARD_EMPTY" -emptyhal: all +apm2: + make -f Makefile HAL_BOARD=HAL_BOARD_APM2 .PHONY: upload upload: $(SKETCHHEX)