mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
Bail out of shallow cloning if it fails, and do full clone instead
This commit is contained in:
5
configure
vendored
5
configure
vendored
@@ -12,6 +12,8 @@ while getopts t OPT; do
|
|||||||
done
|
done
|
||||||
shift $(($OPTIND - 1))
|
shift $(($OPTIND - 1))
|
||||||
|
|
||||||
|
(
|
||||||
|
set -e
|
||||||
# Shallow clonning saves a considerable ammount of time, specially because of the linux kernel.
|
# Shallow clonning saves a considerable ammount of time, specially because of the linux kernel.
|
||||||
# However, git submodules are buggy as usual, and this is the best way i've found to get it done:
|
# However, git submodules are buggy as usual, and this is the best way i've found to get it done:
|
||||||
# https://stackoverflow.com/questions/2144406/git-shallow-submodules/47374702#47374702
|
# https://stackoverflow.com/questions/2144406/git-shallow-submodules/47374702#47374702
|
||||||
@@ -21,6 +23,8 @@ shift $(($OPTIND - 1))
|
|||||||
git submodule update --depth 1 --jobs 4 --init
|
git submodule update --depth 1 --jobs 4 --init
|
||||||
cd qemu
|
cd qemu
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
) &
|
||||||
|
wait $! || git submodule update --init
|
||||||
|
|
||||||
pkgs="\
|
pkgs="\
|
||||||
automake \
|
automake \
|
||||||
@@ -37,6 +41,7 @@ gcc-arm-linux-gnueabi \
|
|||||||
libgoogle-perftools-dev \
|
libgoogle-perftools-dev \
|
||||||
protobuf-compiler \
|
protobuf-compiler \
|
||||||
"
|
"
|
||||||
|
|
||||||
command -v apt-get >/dev/null 2>&1 || {
|
command -v apt-get >/dev/null 2>&1 || {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
apt-get not found. You're on your own for installing dependencies.
|
apt-get not found. You're on your own for installing dependencies.
|
||||||
|
|||||||
Reference in New Issue
Block a user