Skip to content

Commit 18336d8

Browse files
committed
fix QEMU build
1 parent 16d0825 commit 18336d8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tools/build_steps.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function clean_code {
5858
echo after git fetch origin
5959
git checkout $build_commit
6060
echo after git checkout $build_commit
61-
git clean -fxd
61+
git clean -fxd
6262
echo after git clean
6363
git submodule update --init --recursive
6464
echo after git submodule update
@@ -187,13 +187,13 @@ EOF
187187
;;
188188
*-s390x)
189189
# The TargetList.txt has only ZARCH_GENERIC, Z13, Z14. Not worth
190-
# messing with dynamic lists and targets.
190+
# messing with dynamic lists.
191191
local bitness=64
192+
local target="ZARCH_GENERIC"
192193
;;
193194
*-ppc64le)
194195
local bitness=64
195196
local target="POWER8"
196-
local dynamic_list="POWER8 POWER10"
197197
;;
198198
Linux-loongarch64)
199199
local target="GENERIC"
@@ -225,6 +225,13 @@ EOF
225225
echo -n > utest/test_dsdot.c
226226
echo "Due to the qemu versions 7.2 causing utest cases to fail,"
227227
echo "the utest dsdot:dsdot_n_1 have been temporarily disabled."
228+
elif [ "$plat" == "s390x" ]; then
229+
sed -i 's/CTEST(samin, positive_step_1_N_70){/CTEST_SKIP(samin, positive_step_1_N_70){/g' ./utest/test_extensions/test_samin.c
230+
sed -i 's/CTEST(samin, negative_step_1_N_70){/CTEST_SKIP(samin, negative_step_1_N_70){/g' ./utest/test_extensions/test_samin.c
231+
sed -i 's/CTEST(damin, positive_step_1_N_70){/CTEST_SKIP(damin, positive_step_1_N_70){/g' ./utest/test_extensions/test_damin.c
232+
sed -i 's/CTEST(damin, negative_step_1_N_70){/CTEST_SKIP(damin, negative_step_1_N_70){/g' ./utest/test_extensions/test_damin.c
233+
echo "the utest samin/damin have been temporarily disabled."
234+
echo "QEMU does not support the 'lper' /'lpdr' instructions used"
228235
fi
229236
if [ -n "$dynamic_list" ]; then
230237
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \

0 commit comments

Comments
 (0)