From patchwork Fri May 25 13:38: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: 10427445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8FB5E602D6 for ; Fri, 25 May 2018 13:43:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BF8D294B6 for ; Fri, 25 May 2018 13:43:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F40729562; Fri, 25 May 2018 13:43:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E0DB7294B6 for ; Fri, 25 May 2018 13:43:09 +0000 (UTC) Received: from localhost ([::1]:44062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMCzt-0000FY-32 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 25 May 2018 09:43:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMCvq-0004tf-1G for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMCvo-0005sk-4J for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:58 -0400 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:37501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMCvn-0005sT-TE for qemu-devel@nongnu.org; Fri, 25 May 2018 09:38:56 -0400 Received: by mail-wr0-x235.google.com with SMTP id i12-v6so9335336wrc.4 for ; Fri, 25 May 2018 06:38:55 -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=UOpNTpHa13FqOGhqe/784dB3QH5r+sHIBZ6VnioQo7Gjo76cjejwQ/5+B7DeYykRRR 1b4v+TyMyuPNWCCbUch64eG4LKZZTs9tyBx8naP1/JYS6pEbwlq3Sdb3e3JXvdtPkqNz +DyWkdJVK/3MZ97A/DzC4UAnRk2d0AmWKmqn0= 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=UqtWJyRvqFcpdJX/2r+nyPEePBIZXkEUHwwVWYB+oucGOi5rpEMWbxesT9qvfyybxg H4bewOKqmdBmQOorF3LhsVaBiNEj+i5XU54zpaM0pF/H7dh4Wq8ac1dxNGqNVXIW6XI+ 3v3vKlYdTlklrWo7zbBV4miR661gW0u74oQMTSFx5uf4ZcRvUSR35Eb9uq7YlRn97YZ7 NOpSv6bQmNogWUtV+K2OsNuMPr3xnn4B4BTpZaCBUtG8im98FKjuC9DeNp+pKF31tlSl aPPYIRPATB+l05XF57lccyCTnDFgGZn/idcx+dHa22m+j7ZNMIirueFgXDbqTkvt+4Jx meHg== X-Gm-Message-State: ALKqPwe4R1qG2FfbNTUD2dYdJg0+aBQSTMAdJB+fgiFKXqtiO6oqVbSF 6anedeM2Z01NVjefNe+wMCywBQ== X-Google-Smtp-Source: AB8JxZpmGonTMl2g3QFduECxWUC9C5YOtcZk9YBNvBBqwBdYvKfG1mf+K8jMHKdrsfPhE18NzekfuA== X-Received: by 2002:adf:8f25:: with SMTP id p34-v6mr2085461wrb.193.1527255534781; Fri, 25 May 2018 06:38:54 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 44-v6sm54298294wrv.47.2018.05.25.06.38.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 06:38:53 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 6C26B3E02DF; Fri, 25 May 2018 14:38:51 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=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 Date: Fri, 25 May 2018 14:38:04 +0100 Message-Id: <20180525133851.27161-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525133851.27161-1-alex.bennee@linaro.org> References: <20180525133851.27161-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::235 Subject: [Qemu-devel] [PATCH v5 02/49] 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=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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