-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathget-src-repos.sh
More file actions
executable file
·49 lines (39 loc) · 1.31 KB
/
get-src-repos.sh
File metadata and controls
executable file
·49 lines (39 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
set -euo pipefail
SRC_DIR=${1}
MANIFEST_DIR=${2}
echo Cloning repos into "${SRC_DIR}":
git clone -q https://github.com/llvm/llvm-project &
git clone -q https://github.com/llvm/llvm-test-suite &
git clone --depth=1 -q git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux &
git clone --depth=1 -q https://github.com/python/cpython &
git clone --depth=1 -q git://repo.or.cz/libc-test &
git clone -q https://git.busybox.net/busybox/ &
git clone -q https://github.com/quic/buildroot/ &
git clone -q --branch=hexagon-v1.2.4-dec-2025 https://github.com/quic/musl &
git clone -q https://github.com/quic/hexagonMVM &
git clone -q https://github.com/qemu/qemu &
wait
git clone -q https://github.com/qualcomm/eld/ llvm-project/eld/
dump_checkout_info() {
out=${1}
mkdir -p ${out}
for d in ./*
do
if [[ -d ${d} ]]; then
proj=$(basename ${d})
cd ${d}
git remote -v > ${out}/${proj}.txt
git log -3 HEAD >> ${out}/${proj}.txt
cd -
fi
done
}
mkdir -p ${MANIFEST_DIR}
dump_checkout_info ${MANIFEST_DIR}
cat <<EOF
Now that you've cloned the source repos, refer to Dockerfile to find the git refs
of each repo that should be checked out to build a known good configuration.
EOF