@@ -19,14 +19,16 @@ function usage
1919 echo " Enable other submodules with the --full or submodule-specific flags"
2020 echo " "
2121 echo " Options:"
22- echo " -h Display this help message"
23- echo " --full Initialize all submodules"
24- echo " --ara Initialize the ara submodule"
22+ echo " -h Display this help message"
23+ echo " --full Initialize all submodules"
24+ echo " --ara Initialize the optional ara submodule"
25+ echo " --compressacc Initialize the optional compressor accelerator submodule"
2526 echo " "
2627}
2728
2829ENABLE_ARA=" "
2930ENABLE_CALIPTRA=" "
31+ ENABLE_COMPRESSACC=" "
3032
3133while test $# -gt 0
3234do
4749 --caliptra)
4850 ENABLE_CALIPTRA=1
4951 ;;
52+ --compressacc)
53+ ENABLE_COMPRESSACC=1
54+ ;;
5055 * )
5156 echo " ERROR: bad argument $1 "
5257 usage
@@ -92,6 +97,7 @@ cd "$RDIR"
9297 generators/cva6 \
9398 generators/ara \
9499 generators/caliptra-aes-acc \
100+ generators/compress-acc \
95101 generators/nvdla \
96102 toolchains/libgloss \
97103 generators/gemmini \
@@ -139,25 +145,27 @@ cd "$RDIR"
139145 git submodule update --init generators/nvdla
140146 git -C generators/nvdla submodule update --init src/main/resources/hw
141147
142- # Non-recursive clone to exclude ara submods
148+ # Optional clones
143149 if [[ " $ENABLE_ARA " -eq 1 ]] ; then
144150 git submodule update --init generators/ara
145151 git -C generators/ara submodule update --init ara
146152 fi
147153
148- if [[ " $ENABLE_CALIPTRA " -eq 1]] ; then
154+ if [[ " $ENABLE_CALIPTRA " -eq 1 ]] ; then
149155 git submodule update --init generators/caliptra-aes-acc
150156 fi
151157
158+ if [[ " $ENABLE_COMPRESSACC " -eq 1 ]] ; then
159+ git submodule update --init generators/compress-acc
160+ fi
161+
152162 # Non-recursive clone to exclude gemmini-software
153163 git submodule update --init generators/gemmini
154164 git -C generators/gemmini/ submodule update --init --recursive software/gemmini-rocc-tests
155165
156166 # Non-recursive clone
157167 git submodule update --init generators/rocket-chip
158168
159- # Non-recursive clone
160- git submodule update --init generators/compress-acc
161169
162170 # Non-recursive clone
163171 git submodule update --init generators/vexiiriscv
0 commit comments