Add --build-circt flag to build-setup
This commit is contained in:
@@ -39,6 +39,7 @@ usage() {
|
|||||||
echo " --verbose -v : Verbose printout"
|
echo " --verbose -v : Verbose printout"
|
||||||
echo " --use-unpinned-deps -ud : Use unpinned conda environment"
|
echo " --use-unpinned-deps -ud : Use unpinned conda environment"
|
||||||
echo " --use-lean-conda : Install a leaner version of the repository (Smaller conda env, no FireSim, no FireMarshal)"
|
echo " --use-lean-conda : Install a leaner version of the repository (Smaller conda env, no FireSim, no FireMarshal)"
|
||||||
|
echo " --build-circt : Builds CIRCT from source, instead of downloading the precompiled binary"
|
||||||
|
|
||||||
echo " --skip -s N : Skip step N in the list above. Use multiple times to skip multiple steps ('-s N -s M ...')."
|
echo " --skip -s N : Skip step N in the list above. Use multiple times to skip multiple steps ('-s N -s M ...')."
|
||||||
echo " --skip-conda : Skip Conda initialization (step 1)"
|
echo " --skip-conda : Skip Conda initialization (step 1)"
|
||||||
@@ -60,6 +61,7 @@ VERBOSE_FLAG=""
|
|||||||
USE_UNPINNED_DEPS=false
|
USE_UNPINNED_DEPS=false
|
||||||
USE_LEAN_CONDA=false
|
USE_LEAN_CONDA=false
|
||||||
SKIP_LIST=()
|
SKIP_LIST=()
|
||||||
|
BUILD_CIRCT=false
|
||||||
|
|
||||||
# getopts does not support long options, and is inflexible
|
# getopts does not support long options, and is inflexible
|
||||||
while [ "$1" != "" ];
|
while [ "$1" != "" ];
|
||||||
@@ -75,6 +77,8 @@ do
|
|||||||
--use-lean-conda)
|
--use-lean-conda)
|
||||||
USE_LEAN_CONDA=true
|
USE_LEAN_CONDA=true
|
||||||
SKIP_LIST+=(4 6 7 8 9) ;;
|
SKIP_LIST+=(4 6 7 8 9) ;;
|
||||||
|
--build-circt)
|
||||||
|
BUILD_CIRCT=true ;;
|
||||||
-ud | --use-unpinned-deps )
|
-ud | --use-unpinned-deps )
|
||||||
USE_UNPINNED_DEPS=true ;;
|
USE_UNPINNED_DEPS=true ;;
|
||||||
--skip | -s)
|
--skip | -s)
|
||||||
@@ -306,13 +310,20 @@ if run_step "10"; then
|
|||||||
PREFIX=$RISCV
|
PREFIX=$RISCV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git submodule update --init $CYDIR/tools/install-circt &&
|
if [ "$BUILD_CIRCT" = true ] ; then
|
||||||
$CYDIR/tools/install-circt/bin/download-release-or-nightly-circt.sh \
|
echo "Building CIRCT from source, and installing to $PREFIX"
|
||||||
-f circt-full-static-linux-x64.tar.gz \
|
$CYDIR/scripts/build-circt-from-source --prefix $PREFIX
|
||||||
-i $PREFIX \
|
else
|
||||||
-v version-file \
|
echo "Downloading CIRCT from nightly build"
|
||||||
-x $CYDIR/conda-reqs/circt.json \
|
|
||||||
-g null
|
git submodule update --init $CYDIR/tools/install-circt &&
|
||||||
|
$CYDIR/tools/install-circt/bin/download-release-or-nightly-circt.sh \
|
||||||
|
-f circt-full-static-linux-x64.tar.gz \
|
||||||
|
-i $PREFIX \
|
||||||
|
-v version-file \
|
||||||
|
-x $CYDIR/conda-reqs/circt.json \
|
||||||
|
-g null
|
||||||
|
fi
|
||||||
exit_if_last_command_failed
|
exit_if_last_command_failed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user