aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-09 11:21:39 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-09 11:21:39 +0200
commit629e73bcf44f820f1936521d6c65cc481792ce5a (patch)
treeaf754381c45f00a56395cb5eede91e9d3280c43b /Makefile
parent4b9f9281f5d2b425f0de83801eb38224395c0f12 (diff)
parent0054eb23d857844ebae34a7d198fc60e538ccd3c (diff)
downloadpx4-firmware-629e73bcf44f820f1936521d6c65cc481792ce5a.tar.gz
px4-firmware-629e73bcf44f820f1936521d6c65cc481792ce5a.tar.bz2
px4-firmware-629e73bcf44f820f1936521d6c65cc481792ce5a.zip
Merged master into vision_estimate
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0a8562251..8bf96ca23 100644
--- a/Makefile
+++ b/Makefile
@@ -104,7 +104,7 @@ DESIRED_FIRMWARES = $(foreach config,$(CONFIGS),$(IMAGE_DIR)$(config).px4)
STAGED_FIRMWARES = $(foreach config,$(KNOWN_CONFIGS),$(IMAGE_DIR)$(config).px4)
FIRMWARES = $(foreach config,$(KNOWN_CONFIGS),$(BUILD_DIR)$(config).build/firmware.px4)
-all: $(DESIRED_FIRMWARES)
+all: checksubmodules $(DESIRED_FIRMWARES)
#
# Copy FIRMWARES into the image directory.
@@ -210,9 +210,16 @@ menuconfig:
endif
$(NUTTX_SRC):
- @$(ECHO) ""
- @$(ECHO) "NuttX sources missing - clone https://github.com/PX4/NuttX.git and try again."
- @$(ECHO) ""
+ $(Q) (./Tools/check_submodules.sh)
+
+.PHONY: checksubmodules
+checksubmodules:
+ $(Q) (./Tools/check_submodules.sh)
+
+.PHONY: updatesubmodules
+updatesubmodules:
+ $(Q) (git submodule init)
+ $(Q) (git submodule update)
#
# Testing targets