From patchwork Tue Apr 24 15:23:21 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: 134111 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2370605lji; Tue, 24 Apr 2018 08:24:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrzk8KRD2nTK5Fscez8fUKWlrwykT3vbCDHNzD1UHxAoW19KlUrMrLKmxcK8b0z88klPt4z X-Received: by 2002:ac8:2653:: with SMTP id v19-v6mr3573499qtv.126.1524583477736; Tue, 24 Apr 2018 08:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583477; cv=none; d=google.com; s=arc-20160816; b=PzEqkGYMZmfzGoDp5E5lIHpPHuRv+f/qmUpNpujawSXqLeQWVvE6kead5j0fSPtde9 O7C2GSjv6t85QSYnGbmp0zUOfOQ25yO7UtBZfY2/yA7YdAkMTz3y+wHnQUc7pyMJwUFi 0DDp4I9ycfgd3rvDZg7OqgVyNcoqI780JpB2EBiXIoLwKSqQTwe5Rjcg66HTsFs5e8se SOzavlmz80fT7IvOcx6D8HVKKKGw+rk+D4QrS3JHV8HbB7aqpHkOf9BqheOfa7R48iZJ uqVEKKW6F03XElCtnwniUmr6gQZAXboGjaJMk0g7pLTFUCjYDbcCkKEbreJVr3X7AU0j dS/Q== 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=DfoN3OeYnJ889meohj1VDNfXbZnWFtjyq9Ntl6YiiAL+gUCnBF8IN7PdtjfcqJd2rA y8ot23hhaOJAQJ82JaOzGpDHMZVuoTEu/HHj5Fej+e1ARoqgzrP/fG1zgSs806EOlKcj q+gNMJ91u/hkdSqHWCc5wWdZYkryNi0J0E1Ss2BPtCATOEjBlaLPQoj35EMcZQBWPeMe SWZ5PHExYXsnDej/WYP5Y7gCwK0EExmd+JrVnuB1KYijuxbr+MEim4ck+aKupLRy0bqj hv70KeN6eJ2DUdlf9UR8Ivrji4KIo54SSNbR1MZMl20o5q3lyEKbewNgtDJUMbQrNzeE 22dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Bp5dhW0/; 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 t68si135111qki.258.2018.04.24.08.24.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:24:37 -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=Bp5dhW0/; 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]:59072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzo5-0006WO-6s for patch@linaro.org; Tue, 24 Apr 2018 11:24:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzng-0006Tt-28 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzne-0005Ip-3f for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:11 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:54600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznd-0005H5-TH for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:10 -0400 Received: by mail-wm0-x241.google.com with SMTP id f6so1802899wmc.4 for ; Tue, 24 Apr 2018 08:24:09 -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=Bp5dhW0/SNkGjkVWwFT3obtVVDsdi0bYZ5MtLp2TGZVeWSri36mwSimuZb70MQpIJq Jtdyva16apz5li7N0+Ny3UPY3HVFwDXwnCCZ7yQ5jeYlMTdZKyxiEHhRjXRqgWEwAtGE 8aDUklwd4ERdzcKWaS3SYg+gC71Lh3WZAatUc= 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=d1AtVRchOBNsjJbzAQSUS4wFyRXEIJm6DUkZNUCrVOG0C6t3bB4ow5QgQ4fEmQH5Lt AbExr2wTXuwYOpH6aMNxLzT60i6aTM/icZMiSk51EQWNN+p9puxFVXU+wnwtXL37qlTb 1WaTn4UgbRQ1f7PU2IpzqLjWcFDJTs3+v2hwfnPLV7psZUdOyMLX1PafyEzeCPrbFSdD L6tvuFuF/6RxWh48+g5D69pkqZ+22WANowHVyRN3XJlATxYe5mmZsIEipap28kams2v/ jCsnkfLhLoDQPVTl6aOqqEFckn7qt7SdoX6If8fGD+scBwTMacJlNAE93v+QqZZ2sStQ ATdg== X-Gm-Message-State: ALQs6tCdbfdSLR0nRDNVcyS41eVF2bYco/UDH8Ua9+zLacEOU8cTwG4Y xXEezlxBZuN0UZXpJIB18tG44w== X-Received: by 10.28.237.11 with SMTP id l11mr13806373wmh.160.1524583448848; Tue, 24 Apr 2018 08:24:08 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o10-v6sm10513757wrg.90.2018.04.24.08.24.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8944A3E0550; Tue, 24 Apr 2018 16:24:05 +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: Tue, 24 Apr 2018 16:23:21 +0100 Message-Id: <20180424152405.10304-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-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::241 Subject: [Qemu-devel] [PATCH v3 02/46] 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