forked from embecosm/riscv-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clone-all.sh
executable file
·89 lines (64 loc) · 2.88 KB
/
clone-all.sh
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/sh
# Clone script for the RISC-V tool chain
# Copyright (C) 2009, 2013, 2014, 2015, 2016, 2017 Embecosm Limited
# Contributor Jeremy Bennett <[email protected]>
# This file is part of the Embecosm GNU toolchain build system for RISC-V.
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# This file is part of the Embecosm LLVM build system for AAP.
# SCRIPT TO CLONE THE RISC-V TOOL CHAIN
# =====================================
# Invocation Syntax
# clone-all.sh [-dev]
# Argument meanings:
# -dev Clone Embecosm repos as SSH, rather than HTTPS, allowing write
# access.
# If the BASE_URL environment variable is set, then that is used as the base of
# all repository URLs, to allow cloning from non-github sources (e.g. local
# mirrors).
# Set the top level directory.
topdir=$(cd $(dirname $0)/..;pwd)
# Are we a developer?
if [ \( $# = 1 \) -a \( "x$1" = "x-dev" \) ]
then
[email protected]:embecosm
fi
# Set the default base URL, if it is not already provided by the environment.
if [ -z ${BASE_URL+x} ]
then
BASE_URL=https://github.com/embecosm
fi
# Upstream repo names
US=github
EM=embecosm
cd ${topdir}
# get the most important ones first
git clone -o ${EM} ${BASE_URL}/riscv-binutils-gdb.git binutils
git clone -o ${EM} ${BASE_URL}/riscv-gcc.git gcc
git clone -o ${EM} ${BASE_URL}/riscv-gdb.git gdb
git clone -o ${EM} ${BASE_URL}/riscv-newlib.git newlib
# now get those for testing/executing
git clone -o ${EM} ${BASE_URL}/riscv-dejagnu.git dejagnu
git clone -o ${EM} ${BASE_URL}/riscv-gdbserver.git gdbserver
git clone -o ${EM} ${BASE_URL}/picorv32.git picorv32
git clone -o ${EM} ${BASE_URL}/ri5cy.git ri5cy
git clone -o ${EM} ${BASE_URL}/riscv-pk.git riscv-pk
git clone -o ${EM} ${BASE_URL}/riscv-fesvr.git riscv-fesvr
git clone -o ${EM} ${BASE_URL}/riscv-isa-sim.git riscv-isa-sim
git clone -o ${EM} ${BASE_URL}/riscv-beebs.git beebs
git clone -o ${EM} ${BASE_URL}/riscv-tests.git riscv-tests
git clone -o ${EM} ${BASE_URL}/berkeley-softfloat-3 berkeley-softfloat-3
git clone -o ${EM} ${BASE_URL}/berkeley-testfloat-3 berkeley-testfloat-3
# initialize the submodule for the test environment in riscv-tests
cd riscv-tests
git submodule update --init --recursive
cd ${topdir}
echo -e "\nNote: To build everything, you will need device-tree-compiler and verilator installed.\n"