+submodules()
+{
+ # Try to update the submodule. Since bootstrap
+ # is also invoked by distributors, we must
+ # ignore any failing of this function as we
+ # could have no outgoing network connection
+ # in a restricted environment.
+ if ! git --version >/dev/null; then
+ echo "git not installed, skipping submodule update"
+ else
+ git submodule update --init || true
+ git submodule update --recursive || true
+ git submodule sync || true
+ fi
+}
+
+init_buildcommon_include()
+{
+ cp contrib/build-common/Makefile.inc contrib/Makefile.inc || true
+}
+