@@ -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 \
@@ -138,25 +144,27 @@ cd "$RDIR"
138144 git submodule update --init generators/nvdla
139145 git -C generators/nvdla submodule update --init src/main/resources/hw
140146
141- # Non-recursive clone to exclude ara submods
147+ # Optional clones
142148 if [[ " $ENABLE_ARA " -eq 1 ]] ; then
143149 git submodule update --init generators/ara
144150 git -C generators/ara submodule update --init ara
145151 fi
146152
147- if [[ " $ENABLE_CALIPTRA " -eq 1]] ; then
153+ if [[ " $ENABLE_CALIPTRA " -eq 1 ]] ; then
148154 git submodule update --init generators/caliptra-aes-acc
149155 fi
150156
157+ if [[ " $ENABLE_COMPRESSACC " -eq 1 ]] ; then
158+ git submodule update --init generators/compress-acc
159+ fi
160+
151161 # Non-recursive clone to exclude gemmini-software
152162 git submodule update --init generators/gemmini
153163 git -C generators/gemmini/ submodule update --init --recursive software/gemmini-rocc-tests
154164
155165 # Non-recursive clone
156166 git submodule update --init generators/rocket-chip
157167
158- # Non-recursive clone
159- git submodule update --init generators/compress-acc
160168
161169 # Non-recursive clone
162170 git submodule update --init generators/vexiiriscv
0 commit comments