Skip to content
Snippets Groups Projects
Commit 6814ddcc authored by Pavel Kirienko's avatar Pavel Kirienko
Browse files

UAVCAN as a submodule

parent 56649bd1
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,5 @@ mavlink/include/mavlink/v0.9/
tags
.tags_sorted_by_file
.pydevproject
/uavcan
.ropeproject
*.orig
......@@ -4,3 +4,6 @@
[submodule "NuttX"]
path = NuttX
url = git://github.com/PX4/NuttX.git
[submodule "uavcan"]
path = uavcan
url = git://github.com/pavel-kirienko/uavcan.git
......@@ -212,6 +212,9 @@ endif
$(NUTTX_SRC):
$(Q) (./Tools/check_submodules.sh)
$(UAVCAN_DIR):
$(Q) (./Tools/check_submodules.sh)
.PHONY: checksubmodules
checksubmodules:
$(Q) (./Tools/check_submodules.sh)
......
......@@ -31,4 +31,20 @@ else
git submodule update;
fi
if [ -d uavcan/libuavcan_drivers ];
then
STATUSRETVAL=$(git status --porcelain | grep -i uavcan)
if [ "$STATUSRETVAL" == "" ]; then
echo "Checked uavcan submodule, correct version found"
else
echo "uavcan sub repo not at correct version. Try 'make updatesubmodules'"
echo "or follow instructions on http://pixhawk.org/dev/git/submodules"
exit 1
fi
else
git submodule init
git submodule update
fi
exit 0
Subproject commit f66c1a7de3076ff956bdf159dc3a166cbffe6089
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment