[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/25] configure: allow user to override docker engine
From: |
Alistair Francis |
Subject: |
Re: [PATCH 06/25] configure: allow user to override docker engine |
Date: |
Wed, 11 Oct 2023 10:59:52 +1000 |
On Tue, Oct 10, 2023 at 3:52 AM Alex Bennée <alex.bennee@linaro.org> wrote:
>
> If you have both engines installed but one is broken you are stuck
> with the automagic. Allow the user to override the engine for this
> case.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> configure | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index 707132a3ae..ebad155d9e 100755
> --- a/configure
> +++ b/configure
> @@ -180,6 +180,7 @@ fi
> # some defaults, based on the host environment
>
> # default parameters
> +container_engine="auto"
> cpu=""
> cross_compile="no"
> cross_prefix=""
> @@ -787,6 +788,8 @@ for opt do
> ;;
> --disable-containers) use_containers="no"
> ;;
> + --container-engine=*) container_engine="$optarg"
> + ;;
> --gdb=*) gdb_bin="$optarg"
> ;;
> # everything else has the same name in configure and meson
> @@ -921,6 +924,7 @@ Advanced options (experts only):
> --enable-plugins
> enable plugins via shared library loading
> --disable-containers don't use containers for cross-building
> + --container-engine=TYPE which container engine to use [$container_engine]
> --gdb=GDB-path gdb to use for gdbstub tests [$gdb_bin]
> EOF
> meson_options_help
> @@ -1195,14 +1199,14 @@ fi
> container="no"
> runc=""
> if test $use_containers = "yes" && (has "docker" || has "podman"); then
> - case $($python "$source_path"/tests/docker/docker.py probe) in
> + case $($python "$source_path"/tests/docker/docker.py --engine
> "$container_engine" probe) in
> *docker) container=docker ;;
> podman) container=podman ;;
> no) container=no ;;
> 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)
> + runc=$container
> fi
> fi
>
> --
> 2.39.2
>
>
- [PATCH 01/25] tests/avocado: update firmware to enable OpenBSD test on sbsa-ref, (continued)
- [PATCH 01/25] tests/avocado: update firmware to enable OpenBSD test on sbsa-ref, Alex Bennée, 2023/10/09
- [PATCH 04/25] gitlab: shuffle some targets and reduce avocado noise, Alex Bennée, 2023/10/09
- [PATCH 03/25] tests/lcitool: add swtpm to the package list, Alex Bennée, 2023/10/09
- [PATCH 02/25] tests/avocado: remove flaky test marking for test_sbsaref_edk2_firmware, Alex Bennée, 2023/10/09
- [PATCH 08/25] gdbstub: Fix target_xml initialization, Alex Bennée, 2023/10/09
- [PATCH 10/25] plugins: Check if vCPU is realized, Alex Bennée, 2023/10/09
- [PATCH 06/25] configure: allow user to override docker engine, Alex Bennée, 2023/10/09
- Re: [PATCH 06/25] configure: allow user to override docker engine,
Alistair Francis <=
- [PATCH 05/25] tests/docker: make docker engine choice entirely configure driven, Alex Bennée, 2023/10/09
- [PATCH 07/25] configure: remove gcc version suffixes, Alex Bennée, 2023/10/09
- [PATCH 09/25] gdbstub: Fix target.xml response, Alex Bennée, 2023/10/09
- [PATCH 14/25] hw/core/cpu: Return static value with gdb_arch_name(), Alex Bennée, 2023/10/09
- [PATCH 13/25] target/arm: Move the reference to arm-core.xml, Alex Bennée, 2023/10/09
- [PATCH 23/25] contrib/plugins: fix coverity warning in cache, Alex Bennée, 2023/10/09
- [PATCH 11/25] contrib/plugins: Use GRWLock in execlog, Alex Bennée, 2023/10/09