From patchwork Tue Apr 10 19:38:56 2018 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: 133095 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1633725ljb; Tue, 10 Apr 2018 12:42:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx49nZmLGyjIy8/Yhcxa9GUomxQssUsoEe0w5tenjq2q+cnhD4jn5HIvbHhTp3S+bZ1/m7WJp X-Received: by 10.200.22.229 with SMTP id y34mr2806441qtk.236.1523389349785; Tue, 10 Apr 2018 12:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523389349; cv=none; d=google.com; s=arc-20160816; b=sCYAm2hyDki7uYvDOgaZ85cvhFCYADeXk27/Lo7HMkdl+kfnEg/CkDcrtLP+HN7vUj nOzRUK7xIkIWphJT5ZPQ2ickVWhaytXIkNlOc0MXYkbFkiZJfJoR5Ywz8aFJwtNP5bfY d1Y8JNIwTZRYsCLktwTKHWcwDLR/t+4jhBMKWeaW3zmpRIITDvg4/VToUdAqho9+05sr NZk1fFrrUrLEON1i8BJDh5Av09V+uwFgle9gKFvQSCxuohL6nKqwwFiFIh7azaXKIM96 2uHVRNc/tzI/wcLIKyFGfglUJngwLwWNVZWXxcc6lR7UjItNYz8+Psy32Qwpc0ttQkYH /HAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=HnnH/B3e+/eyblACYMxhSUMzH5FCKtfu6tFgUyIuT4A=; b=KtuPHzjN+/bBG6SR6VQEZQjItqYBWal8klYbxige3gFmXiEKMkR3ifBbDDa5zD/NXr CtpCTatmbnLk/c+9OpYDBe30/YTlcE17e7TBOQvxq0HfOiLjCND4fRR/GU0MVFo7BTJr sRv12+RdRiMlA4hExl3bPKfQXedVVZ+Z3933pI3jqI88VSzQW8WSnNPK4cpyvPmBvSOj AK0pAHxB7CYK5/h/i6/pP7hRBm5yMnu0BQSklRX7+6CBrULIT5FdCc9NKpnVhN6lhVHO J/b/e8Y5ELvpyycw5/6En6ymIYkKHi/qnNbFTLpExQJoh5D4EFXUKCgU9YilPXqPOxeT 4A7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AScs8/tn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f130si4095500qke.23.2018.04.10.12.42.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 10 Apr 2018 12:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AScs8/tn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z9x-0001mE-9J for patch@linaro.org; Tue, 10 Apr 2018 15:42:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z6z-000056-A8 for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5z6w-0006F5-MA for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:25 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:38559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5z6w-0006EK-Fb for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:22 -0400 Received: by mail-wr0-x244.google.com with SMTP id m13so13941980wrj.5 for ; Tue, 10 Apr 2018 12:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HnnH/B3e+/eyblACYMxhSUMzH5FCKtfu6tFgUyIuT4A=; b=AScs8/tnKDVgYpUqmjjpkBi2VnadwhXIJFqog2ylbS9JUt0OzHPXV7IT3JynaNRXmo 77SX5GX7gASobB75tUJ2l4AjtYCwMu+Ez36vcj7/KCnxqfDm4tEXys2QJDl2fpwFlocx W8ppWOrXgXZY3rAXhnXX4kFv+9OrivjcIBfGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HnnH/B3e+/eyblACYMxhSUMzH5FCKtfu6tFgUyIuT4A=; b=Ll6nrjppN+wMQcaGaSBx7vZNMrzBqHZyECIY7Y5iu4xSee82qyZ/gUt1nT6izbMsKM 2x2/EALQoDtByAMr5VPjmmWI930hK8sde2/Xz09zAVKI1s+w6lCZfAW4g79ry2TLC70m CZTxUp7b8BegS6QbfOHTdLyZWTW+pMo0bdZS/vwlK2qMKPSV1L7M/dEkuIRiLIbdXxka cVZbG6n0jnCV3o8Z7dnWMs+RdlXZksamIbPXAXQ3vCSAuU1O7kTIYItBES4ZJ6hQua2L 2Ci6OcJWcWN3eh4eJSPlxUvqxU/kwLxJweuKZGIKVOco4sVTbvsalflCUwc0XfuIzaMH lGnA== X-Gm-Message-State: ALQs6tDRvaG8xhlmb54F2riWS8Ry+RJq7DvdDAoQQRti4Obw/mTyjT2r 7t1NNkcWmPq09RQ2RVvLNbXLSg== X-Received: by 10.223.195.205 with SMTP id d13mr1435182wrg.0.1523389161332; Tue, 10 Apr 2018 12:39:21 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b40sm6040219wrb.88.2018.04.10.12.39.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 12:39:20 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 75CE43E0250; Tue, 10 Apr 2018 20:39:19 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 20:38:56 +0100 Message-Id: <20180410193919.28026-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410193919.28026-1-alex.bennee@linaro.org> References: <20180410193919.28026-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v1 01/24] configure: add test for docker availability X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , famz@redhat.com, cota@braap.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This tests for a working docker installation without sudo and sets up config-host.mak accordingly. This will be useful from cross compiling things in the future. Signed-off-by: Alex Bennée --- configure | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) -- 2.16.2 diff --git a/configure b/configure index 4d0e92c96c..b402befe94 100755 --- a/configure +++ b/configure @@ -451,6 +451,7 @@ jemalloc="no" replication="yes" vxhs="" libxml2="" +docker="no" supported_cpu="no" supported_os="no" @@ -5396,6 +5397,23 @@ EOF fi fi +########################################## +# Docker and cross-compiler support +# +# This is specifically for building test +# cases for foreign architectures, not +# cross-compiling QEMU itself. + +if has "docker"; then + if docker images >/dev/null 2>&1 ; then + docker="yes" + else + # docker may be available but using sudo + # so we won't use it for cross-building + docker="maybe" + fi +fi + ########################################## # End of CC checks # After here, no more $cc or $ld runs @@ -5857,6 +5875,7 @@ echo "avx2 optimization $avx2_opt" echo "replication support $replication" echo "VxHS block device $vxhs" echo "capstone $capstone" +echo "docker $docker" if test "$sdl_too_old" = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6680,6 +6699,10 @@ if test "$gcov" = "yes" ; then echo "GCOV=$gcov_tool" >> $config_host_mak fi +if test "$docker" = "yes"; then + echo "HAVE_USER_DOCKER=y" >> $config_host_mak +fi + # use included Linux headers if test "$linux" = "yes" ; then mkdir -p linux-headers