ardupilot/mk/configure.mk
Andrew Tridgell 1132c0ae7c PX4: use PX4_ROOT=../PX4Firmware by default
this should make PX4 builds work out of the box on Windows for people who have used
the github for windows tool to download the two repositories
2013-06-24 12:37:18 +10:00

23 lines
1.2 KiB
Makefile

configure:
$(warning WARNING - A $(SKETCHBOOK)/config.mk file has been written)
$(warning Please edit the file to match your system configuration, if you use a different board or port)
@echo > $(SKETCHBOOK)/config.mk
@echo \# Select \'mega\' for the 1280 APM1, \'mega2560\' otherwise >> $(SKETCHBOOK)/config.mk
@echo BOARD = mega2560 >> $(SKETCHBOOK)/config.mk
@echo >> $(SKETCHBOOK)/config.mk
@echo \# HAL_BOARD determines default HAL target. >> $(SKETCHBOOK)/config.mk
@echo HAL_BOARD ?= HAL_BOARD_APM2 >> $(SKETCHBOOK)/config.mk
@echo >> $(SKETCHBOOK)/config.mk
@echo \# The communication port used to communicate with the APM. >> $(SKETCHBOOK)/config.mk
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
@echo PORT = COM3 >> $(SKETCHBOOK)/config.mk
else
@echo PORT = /dev/ttyACM0 >> $(SKETCHBOOK)/config.mk
endif
@echo >> $(SKETCHBOOK)/config.mk
@echo \# uncomment and fill in the path to Arduino if installed in an exotic location >> $(SKETCHBOOK)/config.mk
@echo \# ARDUINO = /path/to/Arduino >> $(SKETCHBOOK)/config.mk
@echo >> $(SKETCHBOOK)/config.mk
@echo \# PX4 app build: fill in the path to PX4Firmware repository from github.com/diydrones: >> $(SKETCHBOOK)/config.mk
@echo PX4_ROOT = ../PX4Firmware >> $(SKETCHBOOK)/config.mk