[setup] log init submodules (#433)
This commit is contained in:
@@ -1,63 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# exit script if any command fails
|
||||
# wrapper to log output from init-submodules script
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
RDIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
# Ignore toolchain submodules
|
||||
cd "$RDIR"
|
||||
for name in toolchains/*-tools/*/ ; do
|
||||
git config submodule."${name%/}".update none
|
||||
done
|
||||
git config submodule.toolchains/libgloss.update none
|
||||
git config submodule.toolchains/qemu.update none
|
||||
|
||||
# Don't automatically initialize generators with big submodules (e.g. linux source)
|
||||
git config submodule.generators/sha3.update none
|
||||
|
||||
# Disable updates to the FireSim submodule until explicitly requested
|
||||
git config submodule.sims/firesim.update none
|
||||
# Disable updates to the hammer tool plugins repos
|
||||
git config submodule.vlsi/hammer-cadence-plugins.update none
|
||||
git config submodule.vlsi/hammer-synopsys-plugins.update none
|
||||
git config submodule.vlsi/hammer-mentor-plugins.update none
|
||||
git config submodule.software/firemarshal.update none
|
||||
git submodule update --init --recursive #--jobs 8
|
||||
|
||||
# Un-ignore toolchain submodules
|
||||
for name in toolchains/*-tools/*/ ; do
|
||||
git config --unset submodule."${name%/}".update
|
||||
done
|
||||
git config --unset submodule.toolchains/libgloss.update
|
||||
git config --unset submodule.toolchains/qemu.update
|
||||
|
||||
git config --unset submodule.vlsi/hammer-cadence-plugins.update
|
||||
git config --unset submodule.vlsi/hammer-synopsys-plugins.update
|
||||
git config --unset submodule.vlsi/hammer-mentor-plugins.update
|
||||
|
||||
git config --unset submodule.generators/sha3.update
|
||||
git config --unset submodule.software/firemarshal.update
|
||||
|
||||
# Non-recursive clone to exclude riscv-linux
|
||||
git submodule update --init generators/sha3
|
||||
|
||||
git config --unset submodule.sims/firesim.update
|
||||
# Minimal non-recursive clone to initialize sbt dependencies
|
||||
git submodule update --init sims/firesim
|
||||
(
|
||||
cd sims/firesim
|
||||
# Initialize dependencies for MIDAS-level RTL simulation
|
||||
git submodule update --init sim/midas
|
||||
)
|
||||
git config submodule.sims/firesim.update none
|
||||
|
||||
# Only shallow clone needed for basic SW tests
|
||||
git submodule update --init software/firemarshal
|
||||
|
||||
# Configure firemarshal to know where our firesim installation is
|
||||
if [ ! -f $RDIR/software/firemarshal/marshal-config.yaml ]; then
|
||||
echo "firesim-dir: '../../sims/firesim/'" > $RDIR/software/firemarshal/marshal-config.yaml
|
||||
fi
|
||||
echo "PATH=\$( realpath \$(dirname "\${BASH_SOURCE[0]:-\${\(%\):-%x}}") )/software/firemarshal:\$PATH" >> $RDIR/env.sh
|
||||
./scripts/init-submodules-no-riscv-tools-nolog.sh "$@" 2>&1 | tee init-submodules-no-riscv-tools.log
|
||||
|
||||
Reference in New Issue
Block a user