@@ -35,14 +35,16 @@ function usage
3535 echo " Enable other submodules with the --full or submodule-specific flags"
3636 echo " "
3737 echo " Options:"
38- echo " -h Display this help message"
39- echo " --full Initialize all submodules"
40- echo " --ara Initialize the ara submodule"
38+ echo " -h Display this help message"
39+ echo " --full Initialize all submodules"
40+ echo " --ara Initialize the optional ara submodule"
41+ echo " --compressacc Initialize the optional compressor accelerator submodule"
4142 echo " "
4243}
4344
4445ENABLE_ARA=" "
4546ENABLE_CALIPTRA=" "
47+ ENABLE_COMPRESSACC=" "
4648
4749while test $# -gt 0
4850do
6365 --caliptra)
6466 ENABLE_CALIPTRA=1
6567 ;;
68+ --compressacc)
69+ ENABLE_COMPRESSACC=1
70+ ;;
6671 * )
6772 echo " ERROR: bad argument $1 "
6873 usage
@@ -108,6 +113,7 @@ cd "$RDIR"
108113 generators/cva6 \
109114 generators/ara \
110115 generators/caliptra-aes-acc \
116+ generators/compress-acc \
111117 generators/nvdla \
112118 toolchains/libgloss \
113119 generators/gemmini \
@@ -158,14 +164,18 @@ cd "$RDIR"
158164 git submodule update --init generators/nvdla || exit 1
159165 git -C generators/nvdla submodule update --init src/main/resources/hw || exit 1
160166
161- # Non-recursive clone to exclude ara submods
167+ # Optional clones
162168 if [[ " $ENABLE_ARA " -eq 1 ]] ; then
163169 git submodule update --init generators/ara || exit 1
164170 git -C generators/ara submodule update --init ara || exit 1
165171 fi
166172
167- if [[ " $ENABLE_CALIPTRA " -eq 1]] ; then
168- git submodule update --init generators/caliptra-aes-acc
173+ if [[ " $ENABLE_CALIPTRA " -eq 1 ]] ; then
174+ git submodule update --init generators/caliptra-aes-acc || exit 1
175+ fi
176+
177+ if [[ " $ENABLE_COMPRESSACC " -eq 1 ]] ; then
178+ git submodule update --init generators/compress-acc || exit 1
169179 fi
170180
171181 # Non-recursive clone to exclude gemmini-software
@@ -177,9 +187,6 @@ cd "$RDIR"
177187 submodule_name=" generators/rocket-chip"
178188 git submodule update --init generators/rocket-chip || exit 1
179189
180- # Non-recursive clone
181- submodule_name=" generators/compress-acc"
182- git submodule update --init generators/compress-acc || exit 1
183190
184191 # Non-recursive clone
185192 submodule_name=" generators/vexiiriscv"
0 commit comments