From patchwork Thu May 17 17:46:31 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: 136163 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp236420lji; Thu, 17 May 2018 10:48:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8TuKrCy7/IJlKa518/zzysV7n18nXRxSNqQdKd4Uf+3Geeiio7hZkxe/wFSMDbT2QFoZo X-Received: by 2002:ac8:18c8:: with SMTP id o8-v6mr5994957qtk.400.1526579280472; Thu, 17 May 2018 10:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526579280; cv=none; d=google.com; s=arc-20160816; b=BZbHv7SCIRYWokdRPzfteNI4Jxte9V0YbYQXkuH+eJ4nBjzoKZx5/boh92wij4d3NQ G5SdLF4qhzdUVqwpDFkdfbF8ri2ZF+K8UV46J+eiMlm9wMuqnp76SaDLH0HTaEqzsdfr H8R70Slku5VdgK1jrrJxQr2AGdMMUFMMvV9if4mrfFX6Olql67z5b6DGAGtkEFllnvus QGXkdUu4gk4OOfKNwDapy3Nwc2ItBb2X4wGn7nC9x8n+NA+pTkJ0TaXFttT1qaCFACXF 8VlRAH+PCiQsUH8LMksmjCiQoOLUnCAkWsGNlfrh9v7bwy7VPaP+ogLkdypxtXE+isW7 FV/w== 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=ATsdQqudRedipK96DHBv2lrn8i+SF3IYynVbZSUjvYo=; b=AVQnE6FC4lWTFKErfirOmd+RlQBI6y2H/eyJ0Cwp+rTw2lc+MUQnhFJntYrX0Ijn6n bMSmkPxUtBb3aK9vz2Ci+aObtPS1GuqfhLYVN1cv65fKBBzpq413f7d/m/vTr4SCnX8a 9rAJTQ9DDrjfzctaPVsVr/w7vmZ9QRmECQUaMjvDzoc8T/DzqFANkraSj3ty8rLENSrQ RSfM5XlK63sfji4w1Bmn8snWdzVxcv3v/Cm5EzpywD9YlEnbHR8BtyIOzaSn+rqHJDcQ loqbDiaoDc/ITF/u9JHgKSEWa8+tPlCiGZaAanRDclYJKAjwijZ6JK4fzU0urbkD07lT zDfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QsFp6z/4; 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 z13-v6si5284023qvl.165.2018.05.17.10.48.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 10:48:00 -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=QsFp6z/4; 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]:38426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN0R-0006Dr-Sw for patch@linaro.org; Thu, 17 May 2018 13:47:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJMzt-0006De-9s for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJMzr-0003Qv-UV for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:25 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:52500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJMzr-0003Qg-NN for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:23 -0400 Received: by mail-wm0-x22f.google.com with SMTP id w194-v6so9862254wmf.2 for ; Thu, 17 May 2018 10:47:23 -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=ATsdQqudRedipK96DHBv2lrn8i+SF3IYynVbZSUjvYo=; b=QsFp6z/4LZQUP0Ck+hMIFVjyoH+qGW19/F0n+ePhk7ZWhqG0ExND7PM1+msTBIiRE8 nYx3U6ZpSok8MKX1S/w4zkFRpkkYyHG5iuORrKWYx2dn4WnBBF2lUAmFcj/QjuK+DOHW AzkIV+GX1NcR8mPyMntlVNkR0p6CAXEnVhEDM= 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=ATsdQqudRedipK96DHBv2lrn8i+SF3IYynVbZSUjvYo=; b=NbFwNAENoXNTzDNHI4n6A8/3O/rXGBO76MzrU8hR+MvShaIEARy54GpJz95F908/+V CupTtBo0+bHL9Efr5SeyHxaYcXTgSJZunOpNUL6vrKfj15vyMFWG4OHRzB+3JhChIiQH jafMlUQwEIHUjin8DLpPGqMGijAUDI6FrzlTxNJTRpN1zbOHBGEoc7d4iK5ADo2xumiS A9hQg+wmFs4TBmwoawA8SNH86J5M/DBxnIk/0PbGTKqVuQzDZFhLEbBBDOSB/QJpL0aZ yitWDTFQ4Q1NTSj9b+ru20A3tcq5UIn2Ais3RuT7I01MhGSDlAWlsKmcuOnIUg5oIWD2 60pw== X-Gm-Message-State: ALKqPweRVOK0HdvFokLoLDr9fYxoP5Y0keZWtH9Stxp1JcD8I4haAWDR ODwtwMUkknXSnkwcYQEXz5Namw== X-Received: by 2002:a1c:91c4:: with SMTP id t187-v6mr2326169wmd.19.1526579242520; Thu, 17 May 2018 10:47:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id s5-v6sm6878983wra.48.2018.05.17.10.47.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:47:20 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E60793E0CF5; Thu, 17 May 2018 18:47:18 +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 Date: Thu, 17 May 2018 18:46:31 +0100 Message-Id: <20180517174718.10107-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517174718.10107-1-alex.bennee@linaro.org> References: <20180517174718.10107-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::22f Subject: [Qemu-devel] [PATCH v4 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_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 59f91ab3f9..33681f16dd 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