From patchwork Tue Jun 5 16:05:37 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: 137771 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1146165lji; Tue, 5 Jun 2018 09:08:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZj1Ohq8SU6fDcrqX/xTSJoTAuxFU29kPxf61VWAQu5Yoh7EwPkszW5treTJJF/LEy+HPF X-Received: by 2002:ac8:1a57:: with SMTP id q23-v6mr26103583qtk.297.1528214935482; Tue, 05 Jun 2018 09:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528214935; cv=none; d=google.com; s=arc-20160816; b=RIb5ycT5qDnK8jt2g5ArqlJ/xbKleD0Au5GtXEsYFmhpfL4WbaxuOlQOzrIHWAp7+9 zLn4aDEo6pSqBhYCUWDfMullwnpLgGsHdDkFa0zcxEdsE2Ud5bcfg8L3h8jppVIj/e0P Jpmvqw/2ya5g2tPgXQo/FBKNSBy/MInyv3mKPGPnrFU7N+eDNDuQDCICSXXuI6dZ9vkY D2imSsbKWVGVBjfO8hPE/xebMaDuFMeJFnJ5ebgZ3aC0qhQoo55gaFJjriIV3Yc6tViX 8tpjq4IObN/QFutHxJZvLBaMTGMVSLUJTEofVHYii8n5uo+Z3zAPRo5xIySnJSEiUQWU mDcw== 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=3UBREHrNsD1DXMCYuGsDGuAm/4zUftbbmdLfpCh+N/k=; b=So142UA+FnzJIHJ/JmTSan7os+MRjbAD5O9SIA8014w9+NaQy00GxrHvDpnmKT+Ztq KNtIgsYBuJKdaFFsc7w2S6F+TSEdY12gX/y0etDYJl0dQV1s52NdnwTvE6qC8Ybqje6H 5pt9EFGSgyG/ghs2vXuwc0ns6XNUvsw0IhzDw8EjNpYxEFnNlVcjeKKyTqrZ91fwkmu8 WNHRwxBiztqv0TgzyW98cygkpJts59mhlJHfQZqJw6AzbNkI/FWHXmGIT9R7/BsqvUeX 9+LnyS0RcncTXkLrXbxddxHWQRQQDCe9lky8Xn0oh+UXENH0vI3YHzxXCch3w32Q07Nk BTmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kmQSxZQJ; 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 75-v6si12041113qvb.84.2018.06.05.09.08.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Jun 2018 09:08:55 -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=kmQSxZQJ; 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]:47861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVx-0000yB-Ts for patch@linaro.org; Tue, 05 Jun 2018 12:08:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVH-0000vF-7G for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQESy-0004MU-DF for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:11 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:39835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQESy-0004Lj-2g for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:05:48 -0400 Received: by mail-wm0-x22a.google.com with SMTP id p11-v6so6150184wmc.4 for ; Tue, 05 Jun 2018 09:05:47 -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=3UBREHrNsD1DXMCYuGsDGuAm/4zUftbbmdLfpCh+N/k=; b=kmQSxZQJo7Sxj9CGFE0VjVuLpXTNi+ilUIJbdmi27XlKqJFyCgH8ZCO9Q/YVENwpFX vshV8OclZzg3VSgioqpj6WwpUw937flAFeagBcpb5OQkuhPsjGBxJBOkgQyxbsXirC+R YxFbL2RmD+kBHAYLPCbVWtaqs3uzMZLRl+LEM= 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=3UBREHrNsD1DXMCYuGsDGuAm/4zUftbbmdLfpCh+N/k=; b=AJZGbBEBIhP3UE/3inVHi2Ehq/Fo9PiiHsL6M8XRktoEJhF9MZPA8TaQ5CF4lrTqEN ERu8SIysrqwj4ZnYNkmmIcafjxayii6pUQ7wlqTKEbOS+3Xa/CMWRuAtPU+tP0UoacEN kt5SV9ZRpVaUdg6vURNghiB0wzADtq3Dh4IdnA9P2sRjpwJlARGOZCxevHzjlUeqsgbm UxsNMtbry9lKN3wp8H2qZkdLljz2iuap1/GYUAVFUQl0IvaYDRsWCMOVjsw6WHeBJTAy YYBECZmkddz3ISmmK/Wo1b486N+vDCKGOQzalmet6o67W5S6qP2zuwCooGIsTA0JuZIH PA9Q== X-Gm-Message-State: APt69E24ZIsOz7O3doRqk0yrvzTIPOnj+/PD8/YIymmaGoyKoI7Ej846 Lf6WP6wdBTyen8ctb5IBWuECWw== X-Received: by 2002:a1c:d884:: with SMTP id p126-v6mr7801607wmg.110.1528214747037; Tue, 05 Jun 2018 09:05:47 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id j13-v6sm48524651wre.38.2018.06.05.09.05.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 09:05:43 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BD3C13E09EB; Tue, 5 Jun 2018 17:05:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 5 Jun 2018 17:05:37 +0100 Message-Id: <20180605160541.10664-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180605160541.10664-1-alex.bennee@linaro.org> References: <20180605160541.10664-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:c09::22a Subject: [Qemu-devel] [PULL 2/6] 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 -- 2.17.0 diff --git a/configure b/configure index ab810d728f..db8c9d8288 100755 --- a/configure +++ b/configure @@ -456,6 +456,7 @@ jemalloc="no" replication="yes" vxhs="" libxml2="" +docker="no" supported_cpu="no" supported_os="no" @@ -5450,6 +5451,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 @@ -5913,6 +5925,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" @@ -6740,6 +6753,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