aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-07 17:18:54 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-07 17:18:54 +0200
commit4c2cc65ca63141839ac4036cb8704b7ee7f27cb1 (patch)
treebfb7557f5d98ade8d78994d187c475f8f8a64f73 /Makefile
parentd79a80e8bed19ebbff333c244c3c90bae39c9181 (diff)
downloadpx4-firmware-4c2cc65ca63141839ac4036cb8704b7ee7f27cb1.tar.gz
px4-firmware-4c2cc65ca63141839ac4036cb8704b7ee7f27cb1.tar.bz2
px4-firmware-4c2cc65ca63141839ac4036cb8704b7ee7f27cb1.zip
Cleaning up sub modules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0a8562251..7ea74eaae 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,11 @@ menuconfig:
endif
$(NUTTX_SRC):
- @$(ECHO) ""
- @$(ECHO) "NuttX sources missing - clone https://github.com/PX4/NuttX.git and try again."
- @$(ECHO) ""
+ $(Q) if [ -d $(NUTTX_SRC) ]; then ./Tools/check_submodules.sh; else echo ""; echo ""; echo "NuttX submodule missing, doing auto checkout"; git submodule init; git submodule update; fi
+
+.PHONY: checksubmodules
+checksubmodules:
+ $(Q) if [ -d $(MAVLINK_SRC) ]; then ./Tools/check_submodules.sh; else echo ""; echo ""; echo "MAVLink submodule missing, doing auto checkout"; git submodule init; git submodule update; fi
#
# Testing targets