@@ -12,15 +12,19 @@ while getopts t OPT; do
12
12
done
13
13
shift $(( $OPTIND - 1 ))
14
14
15
- # Shallow clonning saves a considerable ammount of time, specially because of the linux kernel.
16
- # However, git submodules are buggy as usual, and this is the best way i've found to get it done:
17
- # https://stackoverflow.com/questions/2144406/git-shallow-submodules/47374702#47374702
18
- # In particular:
19
- # - `shallow = true` on the submodule has no effect for the non default educational branches of our submodules
20
- # - QEMU's submodules point to commits that are neither under branches nor tags, and so `--shallow-submodules` fails
21
- git submodule update --depth 1 --jobs 4 --init
22
- cd qemu
23
- git submodule update --init
15
+ (
16
+ set -e
17
+ # Shallow clonning saves a considerable ammount of time, specially because of the linux kernel.
18
+ # However, git submodules are buggy as usual, and this is the best way i've found to get it done:
19
+ # https://stackoverflow.com/questions/2144406/git-shallow-submodules/47374702#47374702
20
+ # In particular:
21
+ # - `shallow = true` on the submodule has no effect for the non default educational branches of our submodules
22
+ # - QEMU's submodules point to commits that are neither under branches nor tags, and so `--shallow-submodules` fails
23
+ git submodule update --depth 1 --jobs 4 --init
24
+ cd qemu
25
+ git submodule update --init
26
+ ) &
27
+ wait $! || git submodule update --init
24
28
25
29
pkgs=" \
26
30
automake \
@@ -37,6 +41,7 @@ gcc-arm-linux-gnueabi \
37
41
libgoogle-perftools-dev \
38
42
protobuf-compiler \
39
43
"
44
+
40
45
command -v apt-get > /dev/null 2>&1 || {
41
46
cat << EOF
42
47
apt-get not found. You're on your own for installing dependencies.
0 commit comments