ardupilot/mk/px4_targets.mk
2013-01-20 22:13:20 +11:00

22 lines
415 B
Makefile

# PX4 build is via external build system
ifneq ($(PX4_ROOT),)
px4:
make -C $(PX4_ROOT) configure_px4fmu
make -C $(PX4_ROOT) EXTERNAL_APPS=$(PWD)
px4-clean: clean
make -C $(PX4_ROOT) EXTERNAL_APPS=$(PWD) clean
make -C $(PX4_ROOT) EXTERNAL_APPS=$(PWD) configure_px4fmu
px4-upload:
make -C $(PX4_ROOT) EXTERNAL_APPS=$(PWD) upload
else
px4:
$(error ERROR: You need to add PX4_ROOT to your config.mk)
endif