From patchwork Mon Jun 4 14:51:04 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: 137636 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1612483lji; Mon, 4 Jun 2018 07:51:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI+E2NTdlzk/aBPlhUvwal7so98vR8eP2nN6PZsZwHJtHgB9mauFX/N+M2SM/jagyDZRQrj X-Received: by 2002:ac8:5191:: with SMTP id c17-v6mr21621650qtn.35.1528123900362; Mon, 04 Jun 2018 07:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528123900; cv=none; d=google.com; s=arc-20160816; b=ydaOUksFQsUU6WkFrs4MA+FK72uAjuPV7Xyoo/JTbx4HVFZRRH+fT/nl7yT/ngU9az 7/JjkqyNtMzLq185K+b1p7Ej49jwbljm8SrG4MnJVmvWBtKOBM0pWK33qbddYyQIGk2s K09ksymWakZf+GmyhPmNnkmH+v0SCqMqSBfn77/h+6IIA6T7w425+LrvhNMvS/mrigJI PrHym9W3jS8c+ADgy3fJkUpk0axpAcWxWEhHYW5/yz+YCsL1UtYgzr8j1MydmDizsuCz vPQ9goPRfmpbm4UVQZOT5YTWhckLwJHoM+C2Tk8oJy74uA5DKHKxJPfPwNOD14KGIw5T vGsg== 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=dd6c3YkYiTplmttYSCIqC9w8RwtPILMz9zTF1P+oHDs=; b=BM4ltmN5OeIXlCU2qyWAPpE59c6jUOSzb+vEhoh+loBujcKISIPjxBy+G1/bHM3ISe HzLFFzIKBbtoXU7eQCVTw5mb+MWXXX26Ar3Oim1NpzsOQbcFlRA1xhaMfgDslG8CnfDG zc4oqFSRlvtdkLnVgvW9wgx8oi1H67bPHaz/YgkRam+7WAKf/I4Uqmj6jDuzEr8G7E8M c2rpeZQWmDiW3zsdtEvvX8g7BADhH5tSwEBehrTcIFGNRG3+RWLkoUDvOXmWixbbMllj vbTZO3QslFZrFaAiJKDXJ5tBnp9gpYxM41l5Scg5MsErng9WdwTZcE1xsYBfAaleIeEB 1vxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BuqyEpdT; 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 g27-v6si659934qtc.34.2018.06.04.07.51.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 04 Jun 2018 07:51:40 -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=BuqyEpdT; 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]:40156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPqpf-0002q2-RJ for patch@linaro.org; Mon, 04 Jun 2018 10:51:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPqpJ-0002nf-8Y for qemu-devel@nongnu.org; Mon, 04 Jun 2018 10:51:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPqpG-0003z0-Sm for qemu-devel@nongnu.org; Mon, 04 Jun 2018 10:51:17 -0400 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:43495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPqpG-0003yA-LR for qemu-devel@nongnu.org; Mon, 04 Jun 2018 10:51:14 -0400 Received: by mail-wr0-x232.google.com with SMTP id d2-v6so28831038wrm.10 for ; Mon, 04 Jun 2018 07:51:14 -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=dd6c3YkYiTplmttYSCIqC9w8RwtPILMz9zTF1P+oHDs=; b=BuqyEpdTEejty4ZAOXuvTEUWC6kQyBag0D1PuRdB0DhMCN52pRKJUpvF6K8MCDaeUO 8LkfZdJ2BrQTHF3Ag7tbZaYsQ5BIpEJVbOMF4BNGg2nN6872iopplKEw4m5Hz1oKIdBS VQAJfisqj92Ia3CM6F9l8GvuWtxeWlroOH1xU= 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=dd6c3YkYiTplmttYSCIqC9w8RwtPILMz9zTF1P+oHDs=; b=b+GP6n7GV5FyVdeyPV60IlYJIWWIJ/+VPtmPcU9t2RBFSFmOYluz8olTWIQnv/nisf /Itt/DvRUlkLhe7TkfdXQJUpzlUSq8t496oiMu9Nv147qOTGE0/aB5+g/nwvSKcnia00 8xd54U2+bUW/24G32kyCTIghMgUJ+2+qLMhVjGRT6NHBOLmMWjs5Nl2TMbcqobfrmdAq ABDp4ZazN1Kf8ByOP6s9M8XCL777L8D+Tk6eGSsSVupCWmqwPnEKUobIBj7ba527JdKR Xne8EbU+jCiitF487lNWV4NKj9hIF2EW/tAOeYzX02fftdTdxr6/exyCUudBV3LL7Egs HrmA== X-Gm-Message-State: APt69E10TCq+vUsuYhIhGy0g4OQYI8ATLT4NBe/QDfsmbs4lLGUEiPYh 1g5jhM0z0r+GYKEC4wZZVvW7sA== X-Received: by 2002:adf:b502:: with SMTP id a2-v6mr4415649wrd.273.1528123873510; Mon, 04 Jun 2018 07:51:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l142-v6sm546633wmd.16.2018.06.04.07.51.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 07:51:11 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 455C23E09EB; Mon, 4 Jun 2018 15:51:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, pbonzini@redhat.com, stefanha@redhat.com, stefanb@linux.vnet.ibm.com, marcandre.lureau@redhat.com Date: Mon, 4 Jun 2018 15:51:04 +0100 Message-Id: <20180604145109.30498-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180604145109.30498-1-alex.bennee@linaro.org> References: <20180604145109.30498-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::232 Subject: [Qemu-devel] [PATCH v1 2/7] 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?= , qemu-devel@nongnu.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 Reviewed-by: Richard Henderson --- configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.17.0 diff --git a/configure b/configure index a8498ab393..2e10956cfc 100755 --- a/configure +++ b/configure @@ -456,6 +456,7 @@ jemalloc="no" replication="yes" vxhs="" libxml2="" +docker="no" supported_cpu="no" supported_os="no" @@ -5444,6 +5445,17 @@ 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 + docker=$($python $source_path/tests/docker/docker.py probe) +fi + ########################################## # End of CC checks # After here, no more $cc or $ld runs @@ -5907,6 +5919,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" @@ -6731,6 +6744,10 @@ if test "$gcov" = "yes" ; then echo "GCOV=$gcov_tool" >> $config_host_mak fi +if test "$docker" != "no"; then + echo "HAVE_USER_DOCKER=y" >> $config_host_mak +fi + # use included Linux headers if test "$linux" = "yes" ; then mkdir -p linux-headers