Switch to shallow clone for all submodules
This commit is contained in:
12
.github/scripts/check-commit.sh
vendored
12
.github/scripts/check-commit.sh
vendored
@@ -9,6 +9,7 @@ set -ex
|
|||||||
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||||
source $SCRIPT_DIR/defaults.sh
|
source $SCRIPT_DIR/defaults.sh
|
||||||
|
|
||||||
|
# enter bhd repo
|
||||||
cd $LOCAL_CHIPYARD_DIR
|
cd $LOCAL_CHIPYARD_DIR
|
||||||
|
|
||||||
# ignore the private vlsi submodules
|
# ignore the private vlsi submodules
|
||||||
@@ -16,15 +17,16 @@ git config submodule.vlsi/hammer-cadence-plugins.update none
|
|||||||
git config submodule.vlsi/hammer-mentor-plugins.update none
|
git config submodule.vlsi/hammer-mentor-plugins.update none
|
||||||
git config submodule.vlsi/hammer-synopsys-plugins.update none
|
git config submodule.vlsi/hammer-synopsys-plugins.update none
|
||||||
|
|
||||||
# initialize submodules and get the hashes
|
|
||||||
git submodule update --init
|
|
||||||
status=$(git submodule status)
|
|
||||||
|
|
||||||
all_names=()
|
all_names=()
|
||||||
|
|
||||||
|
|
||||||
search_submodule() {
|
search_submodule() {
|
||||||
echo "Running check on submodule $submodule in $dir"
|
echo "Running check on submodule $submodule in $dir"
|
||||||
|
# Initialize submodule and get the hashes
|
||||||
|
git submodule update --init $dir/$submodule
|
||||||
|
(cd $dir/$submodule && git fetch origin)
|
||||||
|
|
||||||
|
status=$(git submodule status)
|
||||||
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")
|
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")
|
||||||
for branch in "${branches[@]}"
|
for branch in "${branches[@]}"
|
||||||
do
|
do
|
||||||
@@ -47,7 +49,7 @@ search () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
submodules=("cva6" "ibex" "boom" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "riscv-sodor")
|
submodules=("cva6" "boom" "ibex" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "riscv-sodor")
|
||||||
dir="generators"
|
dir="generators"
|
||||||
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
|
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
|
||||||
then
|
then
|
||||||
|
|||||||
44
.gitmodules
vendored
44
.gitmodules
vendored
@@ -1,36 +1,47 @@
|
|||||||
[submodule "rocket-chip"]
|
[submodule "rocket-chip"]
|
||||||
path = generators/rocket-chip
|
path = generators/rocket-chip
|
||||||
url = https://github.com/chipsalliance/rocket-chip.git
|
url = https://github.com/chipsalliance/rocket-chip.git
|
||||||
|
shallow = true
|
||||||
[submodule "testchipip"]
|
[submodule "testchipip"]
|
||||||
path = generators/testchipip
|
path = generators/testchipip
|
||||||
url = https://github.com/ucb-bar/testchipip.git
|
url = https://github.com/ucb-bar/testchipip.git
|
||||||
|
shallow = true
|
||||||
[submodule "barstools"]
|
[submodule "barstools"]
|
||||||
path = tools/barstools
|
path = tools/barstools
|
||||||
url = https://github.com/ucb-bar/barstools.git
|
url = https://github.com/ucb-bar/barstools.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/torture"]
|
[submodule "tools/torture"]
|
||||||
path = tools/torture
|
path = tools/torture
|
||||||
url = https://github.com/ucb-bar/riscv-torture.git
|
url = https://github.com/ucb-bar/riscv-torture.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/boom"]
|
[submodule "generators/boom"]
|
||||||
path = generators/boom
|
path = generators/boom
|
||||||
url = https://github.com/riscv-boom/riscv-boom.git
|
url = https://github.com/riscv-boom/riscv-boom.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/sifive-blocks"]
|
[submodule "generators/sifive-blocks"]
|
||||||
path = generators/sifive-blocks
|
path = generators/sifive-blocks
|
||||||
url = https://github.com/sifive/sifive-blocks.git
|
url = https://github.com/sifive/sifive-blocks.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/hwacha"]
|
[submodule "generators/hwacha"]
|
||||||
path = generators/hwacha
|
path = generators/hwacha
|
||||||
url = https://github.com/ucb-bar/hwacha.git
|
url = https://github.com/ucb-bar/hwacha.git
|
||||||
|
shallow = true
|
||||||
[submodule "sims/firesim"]
|
[submodule "sims/firesim"]
|
||||||
path = sims/firesim
|
path = sims/firesim
|
||||||
url = https://github.com/firesim/firesim.git
|
url = https://github.com/firesim/firesim.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/icenet"]
|
[submodule "generators/icenet"]
|
||||||
path = generators/icenet
|
path = generators/icenet
|
||||||
url = https://github.com/firesim/icenet.git
|
url = https://github.com/firesim/icenet.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/block-inclusivecache-sifive"]
|
[submodule "generators/block-inclusivecache-sifive"]
|
||||||
path = generators/sifive-cache
|
path = generators/sifive-cache
|
||||||
url = https://github.com/sifive/block-inclusivecache-sifive.git
|
url = https://github.com/sifive/block-inclusivecache-sifive.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/riscv-tools/riscv-gnu-toolchain"]
|
[submodule "toolchains/riscv-tools/riscv-gnu-toolchain"]
|
||||||
path = toolchains/riscv-tools/riscv-gnu-toolchain
|
path = toolchains/riscv-tools/riscv-gnu-toolchain
|
||||||
url = https://github.com/riscv/riscv-gnu-toolchain.git
|
url = https://github.com/riscv/riscv-gnu-toolchain.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/riscv-tools/riscv-gnu-toolchain-prebuilt"]
|
[submodule "toolchains/riscv-tools/riscv-gnu-toolchain-prebuilt"]
|
||||||
path = toolchains/riscv-tools/riscv-gnu-toolchain-prebuilt
|
path = toolchains/riscv-tools/riscv-gnu-toolchain-prebuilt
|
||||||
url = https://github.com/ucb-bar/chipyard-toolchain-prebuilt.git
|
url = https://github.com/ucb-bar/chipyard-toolchain-prebuilt.git
|
||||||
@@ -38,99 +49,132 @@
|
|||||||
[submodule "toolchains/riscv-tools/riscv-isa-sim"]
|
[submodule "toolchains/riscv-tools/riscv-isa-sim"]
|
||||||
path = toolchains/riscv-tools/riscv-isa-sim
|
path = toolchains/riscv-tools/riscv-isa-sim
|
||||||
url = https://github.com/riscv/riscv-isa-sim.git
|
url = https://github.com/riscv/riscv-isa-sim.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/riscv-tools/riscv-pk"]
|
[submodule "toolchains/riscv-tools/riscv-pk"]
|
||||||
path = toolchains/riscv-tools/riscv-pk
|
path = toolchains/riscv-tools/riscv-pk
|
||||||
url = https://github.com/riscv/riscv-pk.git
|
url = https://github.com/riscv/riscv-pk.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/riscv-tools/riscv-tests"]
|
[submodule "toolchains/riscv-tools/riscv-tests"]
|
||||||
path = toolchains/riscv-tools/riscv-tests
|
path = toolchains/riscv-tools/riscv-tests
|
||||||
url = https://github.com/riscv/riscv-tests.git
|
url = https://github.com/riscv/riscv-tests.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/riscv-tools/riscv-openocd"]
|
[submodule "toolchains/riscv-tools/riscv-openocd"]
|
||||||
path = toolchains/riscv-tools/riscv-openocd
|
path = toolchains/riscv-tools/riscv-openocd
|
||||||
url = https://github.com/riscv/riscv-openocd.git
|
url = https://github.com/riscv/riscv-openocd.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/esp-tools/riscv-gnu-toolchain"]
|
[submodule "toolchains/esp-tools/riscv-gnu-toolchain"]
|
||||||
path = toolchains/esp-tools/riscv-gnu-toolchain
|
path = toolchains/esp-tools/riscv-gnu-toolchain
|
||||||
url = https://github.com/ucb-bar/esp-gnu-toolchain.git
|
url = https://github.com/ucb-bar/esp-gnu-toolchain.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/esp-tools/riscv-isa-sim"]
|
[submodule "toolchains/esp-tools/riscv-isa-sim"]
|
||||||
path = toolchains/esp-tools/riscv-isa-sim
|
path = toolchains/esp-tools/riscv-isa-sim
|
||||||
url = https://github.com/ucb-bar/esp-isa-sim.git
|
url = https://github.com/ucb-bar/esp-isa-sim.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/esp-tools/riscv-pk"]
|
[submodule "toolchains/esp-tools/riscv-pk"]
|
||||||
path = toolchains/esp-tools/riscv-pk
|
path = toolchains/esp-tools/riscv-pk
|
||||||
url = https://github.com/riscv/riscv-pk.git
|
url = https://github.com/riscv/riscv-pk.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/esp-tools/riscv-tests"]
|
[submodule "toolchains/esp-tools/riscv-tests"]
|
||||||
path = toolchains/esp-tools/riscv-tests
|
path = toolchains/esp-tools/riscv-tests
|
||||||
url = https://github.com/ucb-bar/esp-tests.git
|
url = https://github.com/ucb-bar/esp-tests.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/libgloss"]
|
[submodule "toolchains/libgloss"]
|
||||||
path = toolchains/libgloss
|
path = toolchains/libgloss
|
||||||
url = https://github.com/ucb-bar/libgloss-htif.git
|
url = https://github.com/ucb-bar/libgloss-htif.git
|
||||||
|
shallow = true
|
||||||
[submodule "vlsi/hammer"]
|
[submodule "vlsi/hammer"]
|
||||||
path = vlsi/hammer
|
path = vlsi/hammer
|
||||||
url = https://github.com/ucb-bar/hammer.git
|
url = https://github.com/ucb-bar/hammer.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/dsptools"]
|
[submodule "tools/dsptools"]
|
||||||
path = tools/dsptools
|
path = tools/dsptools
|
||||||
url = https://github.com/ucb-bar/dsptools.git
|
url = https://github.com/ucb-bar/dsptools.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/chisel-testers"]
|
[submodule "tools/chisel-testers"]
|
||||||
path = tools/chisel-testers
|
path = tools/chisel-testers
|
||||||
url = https://github.com/freechipsproject/chisel-testers.git
|
url = https://github.com/freechipsproject/chisel-testers.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/sha3"]
|
[submodule "generators/sha3"]
|
||||||
path = generators/sha3
|
path = generators/sha3
|
||||||
url = https://github.com/ucb-bar/sha3.git
|
url = https://github.com/ucb-bar/sha3.git
|
||||||
|
shallow = true
|
||||||
[submodule "vlsi/hammer-cadence-plugins"]
|
[submodule "vlsi/hammer-cadence-plugins"]
|
||||||
path = vlsi/hammer-cadence-plugins
|
path = vlsi/hammer-cadence-plugins
|
||||||
url = https://github.com/ucb-bar/hammer-cadence-plugins.git
|
url = https://github.com/ucb-bar/hammer-cadence-plugins.git
|
||||||
|
shallow = true
|
||||||
[submodule "vlsi/hammer-synopsys-plugins"]
|
[submodule "vlsi/hammer-synopsys-plugins"]
|
||||||
path = vlsi/hammer-synopsys-plugins
|
path = vlsi/hammer-synopsys-plugins
|
||||||
url = https://github.com/ucb-bar/hammer-synopsys-plugins.git
|
url = https://github.com/ucb-bar/hammer-synopsys-plugins.git
|
||||||
|
shallow = true
|
||||||
[submodule "vlsi/hammer-mentor-plugins"]
|
[submodule "vlsi/hammer-mentor-plugins"]
|
||||||
path = vlsi/hammer-mentor-plugins
|
path = vlsi/hammer-mentor-plugins
|
||||||
url = https://github.com/ucb-bar/hammer-mentor-plugins.git
|
url = https://github.com/ucb-bar/hammer-mentor-plugins.git
|
||||||
|
shallow = true
|
||||||
[submodule "toolchains/qemu"]
|
[submodule "toolchains/qemu"]
|
||||||
path = toolchains/qemu
|
path = toolchains/qemu
|
||||||
url = https://github.com/qemu/qemu.git
|
url = https://github.com/qemu/qemu.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/axe"]
|
[submodule "tools/axe"]
|
||||||
path = tools/axe
|
path = tools/axe
|
||||||
url = https://github.com/CTSRD-CHERI/axe.git
|
url = https://github.com/CTSRD-CHERI/axe.git
|
||||||
|
shallow = true
|
||||||
[submodule "software/spec2017"]
|
[submodule "software/spec2017"]
|
||||||
path = software/spec2017
|
path = software/spec2017
|
||||||
url = https://github.com/ucb-bar/spec2017-workload.git
|
url = https://github.com/ucb-bar/spec2017-workload.git
|
||||||
|
shallow = true
|
||||||
[submodule "software/coremark"]
|
[submodule "software/coremark"]
|
||||||
path = software/coremark
|
path = software/coremark
|
||||||
url = https://github.com/ucb-bar/coremark-workload.git
|
url = https://github.com/ucb-bar/coremark-workload.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/gemmini"]
|
[submodule "generators/gemmini"]
|
||||||
path = generators/gemmini
|
path = generators/gemmini
|
||||||
url = https://github.com/ucb-bar/gemmini
|
url = https://github.com/ucb-bar/gemmini
|
||||||
|
shallow = true
|
||||||
[submodule "software/firemarshal"]
|
[submodule "software/firemarshal"]
|
||||||
path = software/firemarshal
|
path = software/firemarshal
|
||||||
url = https://github.com/firesim/FireMarshal.git
|
url = https://github.com/firesim/FireMarshal.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/cva6"]
|
[submodule "generators/cva6"]
|
||||||
path = generators/cva6
|
path = generators/cva6
|
||||||
url = https://github.com/ucb-bar/cva6-wrapper.git
|
url = https://github.com/ucb-bar/cva6-wrapper.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/DRAMSim2"]
|
[submodule "tools/DRAMSim2"]
|
||||||
path = tools/DRAMSim2
|
path = tools/DRAMSim2
|
||||||
url = https://github.com/firesim/DRAMSim2.git
|
url = https://github.com/firesim/DRAMSim2.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/nvdla"]
|
[submodule "generators/nvdla"]
|
||||||
path = generators/nvdla
|
path = generators/nvdla
|
||||||
url = https://github.com/ucb-bar/nvdla-wrapper.git
|
url = https://github.com/ucb-bar/nvdla-wrapper.git
|
||||||
|
shallow = true
|
||||||
[submodule "software/nvdla-workload"]
|
[submodule "software/nvdla-workload"]
|
||||||
path = software/nvdla-workload
|
path = software/nvdla-workload
|
||||||
url = https://github.com/ucb-bar/nvdla-workload.git
|
url = https://github.com/ucb-bar/nvdla-workload.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/dromajo/dromajo-src"]
|
[submodule "tools/dromajo/dromajo-src"]
|
||||||
path = tools/dromajo/dromajo-src
|
path = tools/dromajo/dromajo-src
|
||||||
url = https://github.com/riscv-boom/dromajo.git
|
url = https://github.com/riscv-boom/dromajo.git
|
||||||
|
shallow = true
|
||||||
[submodule "generators/riscv-sodor"]
|
[submodule "generators/riscv-sodor"]
|
||||||
path = generators/riscv-sodor
|
path = generators/riscv-sodor
|
||||||
url = https://github.com/ucb-bar/riscv-sodor.git
|
url = https://github.com/ucb-bar/riscv-sodor.git
|
||||||
|
shallow = true
|
||||||
[submodule "fpga/fpga-shells"]
|
[submodule "fpga/fpga-shells"]
|
||||||
path = fpga/fpga-shells
|
path = fpga/fpga-shells
|
||||||
url = https://github.com/sifive/fpga-shells.git
|
url = https://github.com/sifive/fpga-shells.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/api-config-chipsalliance"]
|
[submodule "tools/api-config-chipsalliance"]
|
||||||
path = tools/api-config-chipsalliance
|
path = tools/api-config-chipsalliance
|
||||||
url = https://github.com/chipsalliance/api-config-chipsalliance.git
|
url = https://github.com/chipsalliance/api-config-chipsalliance.git
|
||||||
|
shallow = true
|
||||||
[submodule "tools/rocket-dsp-utils"]
|
[submodule "tools/rocket-dsp-utils"]
|
||||||
path = tools/rocket-dsp-utils
|
path = tools/rocket-dsp-utils
|
||||||
url = https://github.com/ucb-bar/rocket-dsp-utils
|
url = https://github.com/ucb-bar/rocket-dsp-utils
|
||||||
|
shallow = true
|
||||||
[submodule "generators/ibex"]
|
[submodule "generators/ibex"]
|
||||||
path = generators/ibex
|
path = generators/ibex
|
||||||
url = https://github.com/ucb-bar/ibex-wrapper
|
url = https://github.com/ucb-bar/ibex-wrapper
|
||||||
|
shallow = true
|
||||||
[submodule "generators/fft-generator"]
|
[submodule "generators/fft-generator"]
|
||||||
path = generators/fft-generator
|
path = generators/fft-generator
|
||||||
url = https://github.com/ucb-bar/FFTGenerator.git
|
url = https://github.com/ucb-bar/FFTGenerator.git
|
||||||
|
shallow = true
|
||||||
|
|||||||
Reference in New Issue
Block a user