tests/tcg: Use $cpu in configure.sh
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 24 Dec 2021 20:08:18 +0000 (12:08 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 31 Dec 2021 05:37:35 +0000 (21:37 -0800)
Use $cpu instead of $ARCH, which has been removed from
the top-level configure.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Fixes: 823eb013452e ("configure, meson: move ARCH to meson.build")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
configure
tests/tcg/configure.sh

index eb977e5b6fb86218493176fd831c23c3394c2d8e..030728d11e919bc60b82f879c90dbcf50a449839 100755 (executable)
--- a/configure
+++ b/configure
@@ -3821,7 +3821,7 @@ done
 (for i in $cross_cc_vars; do
   export $i
 done
-export target_list source_path use_containers ARCH
+export target_list source_path use_containers cpu
 $source_path/tests/tcg/configure.sh)
 
 # temporary config to build submodules
index 9ef913df5b436e33e95142a4a76e15897d52868c..8eb4287c840785567f3a12623bc87c5b1e86baa0 100755 (executable)
@@ -326,7 +326,7 @@ for target in $target_list; do
   elif test $got_cross_cc = no && test "$container" != no && \
           test -n "$container_image"; then
       for host in $container_hosts; do
-          if test "$host" = "$ARCH"; then
+          if test "$host" = "$cpu"; then
               echo "DOCKER_IMAGE=$container_image" >> $config_target_mak
               echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> \
                    $config_target_mak