ArduCopter: refactor Makefile targets in terms of Arduino.mk targets

This commit is contained in:
Pat Hickey 2012-12-17 15:32:54 -08:00 committed by Andrew Tridgell
parent 8fe3c5e5d6
commit 9a28ed2df6

View File

@ -10,32 +10,29 @@ clidisabled-nologging: EXTRAFLAGS += "-DCLI_SLIDER_ENABLED=DISABLED "
clidisabled-nologging: nologging
hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
hil: nologging
hil: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
apm1-hil: HAL_BOARD = "HAL_BOARD_APM1"
apm1-hil: hil
apm1-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
apm1-hil: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
apm1-hil: apm1
apm2-hil: HAL_BOARD="HAL_BOARD_APM2"
apm2-hil: hil
apm2-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_ATTITUDE "
apm2-hil: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
apm2-hil: apm2
hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
hilsensors: clidisabled-nologging
apm1-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
apm1-hilsensors: EXTRAFLAGS += "-DCLI_SLIDER_ENABLED=DISABLED "
apm1-hilsensors: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
apm1-hilsensors: apm1
apm1-hilsensors: HAL_BOARD = "HAL_BOARD_APM1"
apm1-hilsensors: hilsensors
apm2-hilsensors: HAL_BOARD = "HAL_BOARD_APM2"
apm2-hilsensors: hilsensors
apm2-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
apm2-hilsensors: EXTRAFLAGS += "-DCLI_SLIDER_ENABLED=DISABLED "
apm2-hilsensors: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
apm2-hilsensors: apm2
heli: EXTRAFLAGS += "-DFRAME_CONFIG=HELI_FRAME "
heli: all
apm1: HAL_BOARD = "HAL_BOARD_APM1"
apm1: all
apm2: HAL_BOARD="HAL_BOARD_APM2"
apm2: all
dmp: EXTRAFLAGS += "-DDMP_ENABLED=ENABLED"
dmp: apm2