From: Alex Bennée Date: Tue, 28 Feb 2023 19:06:46 +0000 (+0000) Subject: configure: expose the direct container command X-Git-Tag: v8.0.0-rc0~37^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60f999b7f2890c9e8ddcd404ce8c4b89b5dee0a2;p=thirdparty%2Fqemu.git configure: expose the direct container command In the process of migrating away from using docker.py to build our containers we need to expose the command to the build environment. The script is still a useful way to probe which command works though. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Message-Id: <20230228190653.1602033-18-alex.bennee@linaro.org> --- diff --git a/configure b/configure index 2a8a9be8a18..f5cfcd566e9 100755 --- a/configure +++ b/configure @@ -1790,6 +1790,7 @@ fi # functions to probe cross compilers container="no" +runc="" if test $use_containers = "yes" && (has "docker" || has "podman"); then case $($python "$source_path"/tests/docker/docker.py probe) in *docker) container=docker ;; @@ -1798,6 +1799,7 @@ if test $use_containers = "yes" && (has "docker" || has "podman"); then esac if test "$container" != "no"; then docker_py="$python $source_path/tests/docker/docker.py --engine $container" + runc=$($python "$source_path"/tests/docker/docker.py probe) fi fi @@ -2397,6 +2399,7 @@ fi if test "$container" != no; then echo "ENGINE=$container" >> $config_host_mak + echo "RUNC=$runc" >> $config_host_mak fi echo "ROMS=$roms" >> $config_host_mak echo "MAKE=$make" >> $config_host_mak