From patchwork Tue Feb 28 19:06:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 657496 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3102534wrb; Tue, 28 Feb 2023 11:21:07 -0800 (PST) X-Google-Smtp-Source: AK7set+ACYCjPwMBUHYF1YjI7Lw06Htv+3fLb6uHGfV90hR516wP0nXS77YGJtTxrlrscSoPqgeN X-Received: by 2002:a05:622a:1448:b0:3bf:c5ce:127a with SMTP id v8-20020a05622a144800b003bfc5ce127amr7599052qtx.4.1677612067451; Tue, 28 Feb 2023 11:21:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677612067; cv=none; d=google.com; s=arc-20160816; b=zhPbzu8sdhaVFtsneOqtthTjbcMUlf4DWLP2mePYEGa7VTt0Bfj7aIg6aNrEyNz4oL d7p4hFU0zzSIpEJv7GvEc6me0KqDjlznHL/Rj8UBikmIB9+KFwYyYKnctI/yN+qpowIz wYV6Omy6P7t3B63pc7hKxMbwfnNS3zoc7Q2VMlAimlxeloXR8AhBHxyj6nHBn+Yo50pC KcDQx0g23JD8mQ4ElbkRde8fUzn1ANwUlInXXop2426jKfVATc3MOX5BxlAHGEqaIcNa NFAUNQFokEaTs8mFDgbqxDZbL5AMu6EOyZHdj37StOLnHDJhHSE9XaP1FZj1L8r06H+w fhkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xt3eb+HaT4XEXo3IRutOvZXV+aViTUge+mDFXoTsYYE=; b=DTrYkS+9AM7NvZ3yFonNULjsKPp/YzUcg3AQBq6NzLWKGXPl5IPKZymWlRgB13iGtE 36SI7bdWtzqt5rQlF7pLZvblWy9neLbID9XXrOXPN/VmL+5R4ANV7yjmPS65p/km50f5 ki3Tu60rYN2nIWuxY5O4OV4aPQ2QrAzTMiIoFkyWuV8e0ofjoaGCC+Wjtvgxj04juCbD evAdtf+uHRmLBiSBeL3nbctjQDGN5F8+r3htTWJb0GBYRItj+LsEmUXemoxH8d5DSwLF gfjIJTuQ93oWPjtMcsWCtd5kXdA37npLilh2av4pZAQJex3gaKw4hOq1X1ZZ7iN8XkIf WrJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gWHn1qkC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m2-20020a05620a290200b00741b9cf3f1csi11351077qkp.23.2023.02.28.11.21.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 11:21:07 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gWHn1qkC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX5Wp-0007OY-01; Tue, 28 Feb 2023 14:20:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX5Wn-0007Nw-Db for qemu-devel@nongnu.org; Tue, 28 Feb 2023 14:20:45 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX5Wk-00062H-VT for qemu-devel@nongnu.org; Tue, 28 Feb 2023 14:20:44 -0500 Received: by mail-lf1-x133.google.com with SMTP id m7so14607099lfj.8 for ; Tue, 28 Feb 2023 11:20:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xt3eb+HaT4XEXo3IRutOvZXV+aViTUge+mDFXoTsYYE=; b=gWHn1qkCdict7Yi1ZCiJP3IL2ctfQg7WD8LgjS4GduS3XxFab5s67Qr/zse4q6a7Rl 33mrW/cdm655PmGp/GJwDfCLUWiZidw1xTztgpWt9mjyXG5vL9ZhrZAAzidGEY+7oISR ixNXsIJwQZQdZEPRpdEg1M6ql5+384SyAPYxdkHgyglSQtHJ5ZM8QB+tDhR/M/h56Qcr K9HYXNSyItRt9bpfjY9EX90tOArMu0rEPjHB5Zp4HC6mY5HoM3ttix23FhCG3wzd3m8T 8fdHjKfWF93SfuSdvlCxLFHxb+IUumsRu1x41/Rv8ucbHYJKeVcha3toJoH91fE7Ak/8 koSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xt3eb+HaT4XEXo3IRutOvZXV+aViTUge+mDFXoTsYYE=; b=A5BeQOJPDkyQn5JagoogiBNTERY0F4qtlVW/HLOYNN50rNujl/91ZvAT3FSydYwLCu TMuAul8phCpd6x24a6XthV+LlnuB5RWVJE40+sAU0W8wmpRFP+mMbOiVLrfagnaZo7ZJ BCZ+4cRFZ+V513lN49hKAVthh9LhIKG2v9lHfuqm0bkNQtGSI5iZmnyjHRauNA3eDaLs ARr2QP7+8LIoRyiFV8/bivUMBEu+eXHA1gbz9isxRjj0HlYKDRiSY6EVbrcYL3srv6lZ 4VREVpgel7XNIYRkEeci22VSxUbajy/vi0XIB/cRktQ0HpIVobMNRuu4aL0sDa56byM7 wMlw== X-Gm-Message-State: AO0yUKUlYikQfp7+w0ozajT6utfX5U1/trkhxhkw5ji86O2zd7uh5z0g T0e8TBRMfOWtGfzfuUkyZicOQVUVQqcdzmyP X-Received: by 2002:a05:600c:358f:b0:3e9:9fc5:2c6d with SMTP id p15-20020a05600c358f00b003e99fc52c6dmr3149536wmq.14.1677611660616; Tue, 28 Feb 2023 11:14:20 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id u4-20020adfed44000000b002c563b124basm10673883wro.103.2023.02.28.11.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 11:14:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 399FC1FFC6; Tue, 28 Feb 2023 19:06:55 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Michael Roth , Peter Maydell , Kevin Wolf , =?utf-8?q?Alex_Benn=C3=A9e?= , Beraldo Leal , Alexander Bulekov , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Darren Kenny , Hanna Reitz , Cleber Rosa , John Snow , Ed Maste , qemu-arm@nongnu.org, Fam Zheng , Thomas Huth , Yonggang Luo , qemu-block@nongnu.org, Paolo Bonzini , Stefan Hajnoczi , Bandan Das , Li-Wen Hsu , Pavel Dovgalyuk , Laurent Vivier , Bastian Koppelmann , Qiuhao Li , Wainer dos Santos Moschetta Subject: [PATCH v3 17/24] configure: expose the direct container command Date: Tue, 28 Feb 2023 19:06:46 +0000 Message-Id: <20230228190653.1602033-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228190653.1602033-1-alex.bennee@linaro.org> References: <20230228190653.1602033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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 --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index dccb5d4f96..1e36e05c37 100755 --- a/configure +++ b/configure @@ -1748,6 +1748,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 ;; @@ -1756,6 +1757,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 @@ -2355,6 +2357,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