diff options
author | Paolo Bonzini | 2022-09-29 13:41:58 +0200 |
---|---|---|
committer | Alex Bennée | 2022-10-06 12:53:40 +0200 |
commit | c4575b59155e2e0065c29d56496dbf3e6ffd035b (patch) | |
tree | 167cc3f487f694a28f037b5d4214b52c3f12a6ca /configure | |
parent | configure: return status code from probe_target_compiler (diff) | |
download | qemu-c4575b59155e2e0065c29d56496dbf3e6ffd035b.tar.gz qemu-c4575b59155e2e0065c29d56496dbf3e6ffd035b.tar.xz qemu-c4575b59155e2e0065c29d56496dbf3e6ffd035b.zip |
configure: store container engine in config-host.mak
In preparation for removing $(DOCKER_SCRIPT) from the tests/tcg configuration
files, have Make use the same container engine that had been probed at
configure time.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220929114231.583801-19-alex.bennee@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1779,9 +1779,11 @@ fi container="no" if test $use_containers = "yes"; then - if has "docker" || has "podman"; then - container=$($python "$source_path"/tests/docker/docker.py probe) - fi + case $($python "$source_path"/tests/docker/docker.py probe) in + *docker) container=docker ;; + podman) container=podman ;; + no) container=no ;; + esac fi # cross compilers defaults, can be overridden with --cross-cc-ARCH @@ -2373,6 +2375,9 @@ if test -n "$gdb_bin"; then fi fi +if test "$container" != no; then + echo "ENGINE=$container" >> $config_host_mak +fi echo "ROMS=$roms" >> $config_host_mak echo "MAKE=$make" >> $config_host_mak echo "PYTHON=$python" >> $config_host_mak |