From patchwork Thu Apr 19 13:58:20 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: 133762 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp669140ljf; Thu, 19 Apr 2018 06:59:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqJOH7v/n65/7+N8s2/ijPBLDEMvjTf1LJdjdTT6KZGGUtuzw0+ITxyWSS6/q8bev6lW0dn X-Received: by 2002:ac8:3af:: with SMTP id t47-v6mr5573162qtg.117.1524146374162; Thu, 19 Apr 2018 06:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524146374; cv=none; d=google.com; s=arc-20160816; b=ne9tA7MarWuJg2bFp5EYAOwh7horXMB1ooORGJ9o6Q+5d5OgzHof8o83KNAWtIPknN u4MZDNNg7p7JnhUexKJpmwsJxKghRrIhdMW0En5yriygp62MKJgmlXzlmmcxHGA0TNCH IXRRQqsI/SPjQXjp/e/ggjMjvinRFVoYb6mcq0eZfv2wRGMD0gFIVzczhtLZZAdKRp5s BOuGK1SsdPkmGcW69whsrImBARQF97xhVXT+INbfaaDsvBPFTBdTV+j+FbI2/lFgd2Rf cnmC3wbhjEJbJushwAlVBRhN3GPXPBOuLaB7SvcjLDA8/VCkYaW6TfvJmoXDfi1rBWjf EKkA== 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=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=f6VYN/0Zwujs2YYP4L+/+LP/IVGHFsnZzz/Yz4zcYLMwf9TYKpP3whWRueJ6Q0bexw sQTRTEEYtLP1ezvfI50ntuP+HvDmPwJMDLSVlNy1NiuWkWx0lHUQNrndULJygtyGoAYS ozIDOCYhx0Y8hDeNVOTt5FrCoP1lh7dlbMmXKmfDt2w7n/Xkb+qc8+whsvfaRL5xgW7P Yvw7DpRpKKYlzCKJJM0TymwlJ5gN97I/tB/TP+DquHWnagwThZQdA6P2LvWxkPtfzLtc AFbbuixtWkiUuXOGIQ2+KrgQTVT0AclAm2Y+v2Y4YjajQCm1HKMMD8tKprMPsONiSkZN xZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=h9RCiIO1; 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 f130si2112389qkb.193.2018.04.19.06.59.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 06:59:34 -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=h9RCiIO1; 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]:49797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9A61-0005wT-Kr for patch@linaro.org; Thu, 19 Apr 2018 09:59:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9A5c-0005vy-8a for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9A5a-00025a-0Y for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:08 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:43520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9A5Z-00024V-P0 for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:05 -0400 Received: by mail-wr0-x244.google.com with SMTP id u4-v6so14330285wrg.10 for ; Thu, 19 Apr 2018 06:59:05 -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=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=h9RCiIO1eKYenMVPiIJ/aZLtkhm/lxEl5t80egGSXxZsNDAcDDq8KeW6h6Wdvwn0E5 Og3rZiKWfi9jHMHFeU7NlbU9NLurzHumcpgWR3UV9RLJvm0sv82V5mABqQBsEhXX+o9/ HsydmIowj9rAvWBuFA/WYbut2FZOAt0VdJZBs= 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=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=DBomgwxrcWkvjeJriBXAl3GzAeMlzz/cuWrgf99OkivAUCm4kMoLg4/5guiiEGt8QZ L+aEJmcKprJj+PKGAoZSHrmuQnn2o4RL1Z9MskSnGr3DIN3YypujHwCLOJrkhevhLgHP 0HOK835jSSDht/zrJQG6uP1+p/VCzoGVMrMDB1l0MyLh+/PX19WozlOXYJE52Z7B+wOo i8Gufjgmrb7OA69L8zIwx5lbecPpkLrjAdxe2gPsria6GVsVLOXm2FubJbeoMPXeqNqM XXITRIffMORnhk0G2iOyUQH1n1hytaypOWyY3tv0ocXnGxsDpBCU00/rJaBL7q9tu+la mKIg== X-Gm-Message-State: ALQs6tCUIaeEG9uN2qQMxpzPkMrfoI8DJ/K5g/XdXvwaAvaeFwjimdly j3CuKvtayDKk0f2xWH+rsBW5WQ== X-Received: by 10.28.237.11 with SMTP id l11mr4533276wmh.160.1524146344565; Thu, 19 Apr 2018 06:59:04 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k11sm4600027wmi.35.2018.04.19.06.59.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:59:02 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AD0FE3E02CB; Thu, 19 Apr 2018 14:59:01 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, 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 Date: Thu, 19 Apr 2018 14:58:20 +0100 Message-Id: <20180419135901.30035-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-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 v2 02/43] 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 --- configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/configure b/configure index 0a19b033bc..b0ae632ee4 100755 --- a/configure +++ b/configure @@ -451,6 +451,7 @@ jemalloc="no" replication="yes" vxhs="" libxml2="" +docker="no" supported_cpu="no" supported_os="no" @@ -5413,6 +5414,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 @@ -5874,6 +5886,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" @@ -6697,6 +6710,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