From patchwork Tue Jun 5 16:05:36 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: 137774 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1149006lji; Tue, 5 Jun 2018 09:11:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMkwyAl48Kc3KWxUIS0DIT8ZPmoJRRywospRXEs14z1zSq/GtyWEBouYz61+CCehqHls/z X-Received: by 2002:a0c:c38e:: with SMTP id o14-v6mr16028197qvi.49.1528215084865; Tue, 05 Jun 2018 09:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528215084; cv=none; d=google.com; s=arc-20160816; b=bRVaZ0qoqDOwY9n2S8ymW+rsMqzMQz+Dee9DxlAfTi1miUy89l3iMM24V9H4FV/drf 6Sz4GZAUsP1IYlZPT1j5sRGNYkCr3gWNYXSI6dWk3CryAHWRJV+nxj4aIEj6BTf0WG8X 4/GUa0hMebVQuR1DJY8mDHkSbQnk/fNz1rNkVrH4Rw4fH0FSkVLQiDJbUMogAgzAJEEJ nCzqc3AnZvtabbwE/c7/LkJVWIFk5JKGOQDQPkYp9Fg0PaVC9Yy0oCx+cKqcSpHETLfI 0N87nmH/zGGG2xxr1wNIJz3x48q3QWKgesTpM6nHeIjGnt7F27dpkFJCQSKjjdZiRehY 5DAw== 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=PlTHbx5GnD2XG0NTiiXTWRxIBQvTbySEnV89hR9beM4=; b=gPS2QOBhaoSg5ciPC6O31F30yXbeDq5spIDVUNjoURvTSS9QAv955cU1ELC95LeTBG SrwmffVsSGMhyo1wIG0FsMlfbUATP+wDT3XbEkSDPxTJ98GNMYNoAZrCjO796+NRRjwO QI7WTlL9gDJ1GA0V2WPxjCeN1noX4B+b8buzUEFxxfb6ZJ0uMCaSPJ2mLvrzHun86MwH dp4izJq4eOitQCRC1oLpx7f5M0TW+RTM0ZnLkQLvHYAp69yU3TUqcq3Iwx0B1QmJK4/o cVu4IlucqB2KF6orzl/5C/ulkDyKnff/hJqZycZO/5I8zBxZG0KGntz37nQS5Mz8YgVs HHzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ftAQy5zC; 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 m127-v6si4124596qkc.186.2018.06.05.09.11.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Jun 2018 09:11:24 -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=ftAQy5zC; 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]:47867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEYO-0002Zo-B8 for patch@linaro.org; Tue, 05 Jun 2018 12:11:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVH-0000vI-KE for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQESv-0004Jz-1E for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:11 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36039) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQESu-0004JE-Lb for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:05:44 -0400 Received: by mail-wm0-x236.google.com with SMTP id v131-v6so6185897wma.1 for ; Tue, 05 Jun 2018 09:05:44 -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=PlTHbx5GnD2XG0NTiiXTWRxIBQvTbySEnV89hR9beM4=; b=ftAQy5zCeIv/El+yQGMibTDLJmjuDCsoOBD1jBm5CzN3eX4seGm1AJ8mqQXlGHEd1p zoXrXMJXdGBuA8/gzmCUH4iPeG5rpGJ5azY2JWtaQ1ghxnUOpM+tO0atj09DYkN6edaW oJfUUu5yVcWUT5s5HoOov9rkTDvhfiTr9/CJ0= 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=PlTHbx5GnD2XG0NTiiXTWRxIBQvTbySEnV89hR9beM4=; b=kOv0h2TDVXq6f+c1aDPsq1WUAj4qimRjS9x7HT1oD3Lp63ARzhUEJ+Up5Roy9Gok9T iLgLV3NC20XR9oIDuKboief5HZwt8wSnVCCvNvOl264vnyk8cwi8joe3LWslxbwzh7TX 4/gC3oQsE8KlVPdLCyjhhtT72aiRWdGuyTHf2jefLvHnbOwffOfy0O/JQmWmQDyfsHTQ JdawsXkwvesLlHcYqEU7npZLo/+krMQY0iqEcjp9oRS6TShbFbaNXTqFpLKZPwBJmVmM oHdWG6YHQPLzMM75maBlxThscSoMwVu+uPPAa7V7V+7kB3/+kPsAdqbp1YydiI+fYZC2 /vWw== X-Gm-Message-State: APt69E1+KEfozSnx9IEPMldPdtJekD84O1YlWGbxMb+r6pTE//sHXH6w CkQgpOqJ5vbkXMgcf8owdQ+MPA== X-Received: by 2002:a1c:58ce:: with SMTP id m197-v6mr11633116wmb.110.1528214743568; Tue, 05 Jun 2018 09:05:43 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 203-v6sm2357320wmp.23.2018.06.05.09.05.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 09:05:41 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AAB613E0971; 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:36 +0100 Message-Id: <20180605160541.10664-2-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::236 Subject: [Qemu-devel] [PULL 1/6] docker: add "probe" command for configure 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: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is a helper function for the configure script. It replies yes, sudo or no to inform the user if non-interactive docker support is available. We trap the Exception to fail gracefully. Signed-off-by: Alex Bennée Reviewed-by: Fam Zheng -- 2.17.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 1246ba9578..f8267586eb 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -390,6 +390,24 @@ class ImagesCommand(SubCommand): def run(self, args, argv): return Docker().command("images", argv, args.quiet) + +class ProbeCommand(SubCommand): + """Probe if we can run docker automatically""" + name = "probe" + + def run(self, args, argv): + try: + docker = Docker() + if docker._command[0] == "docker": + print "yes" + elif docker._command[0] == "sudo": + print "sudo" + except Exception: + print "no" + + return + + def main(): parser = argparse.ArgumentParser(description="A Docker helper", usage="%s ..." % os.path.basename(sys.argv[0])) 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 From patchwork Tue Jun 5 16:05:38 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: 137777 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1155600lji; Tue, 5 Jun 2018 09:17:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPBbxG4U670PmyPInNIW042Ucr4CaF3MSJ58+fQXkefTDneZG8cim6H9kqJQghbSsWL4C+ X-Received: by 2002:a0c:b01d:: with SMTP id k29-v6mr15045426qvc.121.1528215450057; Tue, 05 Jun 2018 09:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528215450; cv=none; d=google.com; s=arc-20160816; b=JanZEwyEKk5SaUhokP7UKQb3oKvc+0ZaYYue7kKs3C//iZmt/OKw2/8CkN1KNV9yEm RJ51Gjr6/qb9l2nMtqlXVj8oPt5k78dkoONFzBt68EhYVpYucFw+FaQFayDyg3gzPP9C vLgW4p1soGgeXJGNXR+nZ8uCYxotJzCMgoykgNUC041kFujFbM709iHrJEKxtJdx6TLc kCycal85SHqSboQDYINVcKYSxOVZCEvYzNXyoQvi/e3N9H0RGTi6t24qSIIf8epup9RA ZXTzFSU1WIzUIKwOuRndZ4XDH0N4tq0sXZP5+wURgUkzWlti7fPYSjh5ekNcy/DKtOOH DOfg== 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=jgjltl47xPy+3+jIHw8dBiWvAEsxbuKQzVYZhZalN2Q=; b=bhTX1/w6Wap5xQq/qPAN1hOOdePg6pzpXG19tBc0IPPJ/BAY3QnK+Nl0R790YwITQL Qwex0csFyjWETSFblgJezpv4GMqFwZxu3Vl3qYgvMBxIyD6IktRH4eQtGO8MBmYfsOmq eCybnqLdJ4zqGLfM/sHW7xLhjiAFsxlA/h6UcpHTaCp0SylycjSi/0FMviZPrVPmI3mq 4h6nTGDht/hUwklHWvmyd1RCZKX1yyejm0vipgQAwQN5jcBFpTaRnhs7jPaz7Z7ArqK4 NWpsXbj/zVtI97Tup3Fi0Z5vyB9nkb3U/O3rWfuZSgoUWECEZ6sNr1DiW7Qi2qAe3+r6 gukw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DTP5sETU; 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 a184-v6si25892270qke.81.2018.06.05.09.17.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Jun 2018 09:17:30 -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=DTP5sETU; 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]:47912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEeH-0000CE-G5 for patch@linaro.org; Tue, 05 Jun 2018 12:17:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVE-0000v6-Kw for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQESw-0004Kj-11 for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:08 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:40300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQESv-0004Jv-Ks for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:05:45 -0400 Received: by mail-wm0-x22f.google.com with SMTP id n5-v6so6140923wmc.5 for ; Tue, 05 Jun 2018 09:05:45 -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=jgjltl47xPy+3+jIHw8dBiWvAEsxbuKQzVYZhZalN2Q=; b=DTP5sETUUlxKCDKPhycN8bv/tZE69TWSe/Yqi7II2kIzM8Wq07X4tSfPwSKL9qiAcs 7FJK3LuOKQrLunpJh5zf76tjogrpo9cvn6O4Caa1YNxQwQF4P81nBqWVgSSj0Vd1139X jrtBMrgH8V6cguRDAZmPwLQeHY3P3xo7L6jpk= 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=jgjltl47xPy+3+jIHw8dBiWvAEsxbuKQzVYZhZalN2Q=; b=gFtXiH3pMJlikzL8PKpca98/J1Ftt4z3f5knDl6yq+1Dib5FeA6iBOZ4Fmdj8Cpxtn ruQi0VF9DU+u1LEvf8J/lNVhEnLYRZ59vlbpBmpbBbIUHhzzZHakdW4YQxm5khdAW8Bq F8LLEKpTgopVeJICC19mfXvs05BW6E7GL6fdsoJt5OaDeW5kFEm+94n/T65/If7XY2eq 8AGAhURxtbedQtZNgUE3e2vDfQ4RIu17JtObHPOVw/gz2Zdm+Wd2fNvO1tiPk8+IP/om LJrOiCCuEwEjXmNqd/0/OYWB6/bhuXMaenjdcZJ4zyl8xRZmskuAbXn9BjFOEGd7f420 IpkQ== X-Gm-Message-State: ALKqPwepuoTLik5hODRZri3pJuUWaRlhuWa4RIQI8MdIryzx9374MNcY DN5wdu1DvAlXD05yVOedLG5jotpJbFU= X-Received: by 2002:a1c:e388:: with SMTP id a130-v6mr12318174wmh.27.1528214744406; Tue, 05 Jun 2018 09:05:44 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c131-v6sm2132995wma.41.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 D292B3E09FC; 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:38 +0100 Message-Id: <20180605160541.10664-4-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::22f Subject: [Qemu-devel] [PULL 3/6] Makefile: Rename TARGET_DIRS to TARGET_LIST 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?= , Fam Zheng , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng To be more accurate on its purpose and make code that looks for a certain target out of this variable more readable. Signed-off-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée -- 2.17.0 diff --git a/Makefile b/Makefile index 6d588d1f71..023b3437ec 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,8 @@ seems to have been used for an in-tree build. You can fix this by running \ endif endif -CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_DIRS)),y) -CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_DIRS)),y) +CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_LIST)),y) +CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_LIST)),y) CONFIG_XEN := $(CONFIG_XEN_BACKEND) CONFIG_ALL=y -include config-all-devices.mak @@ -366,8 +366,8 @@ DOCS= endif SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet) BUILD_DIR=$(BUILD_DIR) -SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) -SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_DIRS)) +SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_LIST)) +SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_LIST)) ifeq ($(SUBDIR_DEVICES_MAK),) config-all-devices.mak: @@ -470,7 +470,7 @@ config-host.h-timestamp: config-host.mak qemu-options.def: $(SRC_PATH)/qemu-options.hx $(SRC_PATH)/scripts/hxtool $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"GEN","$@") -SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) +SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_LIST)) SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES)) $(SOFTMMU_SUBDIR_RULES): $(block-obj-y) @@ -514,7 +514,7 @@ ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) romsubdir-%: $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/" CFLAGS="$(filter -O% -g%,$(CFLAGS))",) -ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) +ALL_SUBDIRS=$(TARGET_LIST) $(patsubst %,pc-bios/%, $(ROMS)) recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) @@ -772,7 +772,7 @@ distclean: clean rm -f docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf rm -f docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html rm -f docs/qemu-block-drivers.7 - for d in $(TARGET_DIRS); do \ + for d in $(TARGET_LIST); do \ rm -rf $$d || exit 1 ; \ done rm -Rf .sdk @@ -873,7 +873,7 @@ endif $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \ done $(INSTALL_DATA) $(BUILD_DIR)/trace-events-all "$(DESTDIR)$(qemu_datadir)/trace-events-all" - for d in $(TARGET_DIRS); do \ + for d in $(TARGET_LIST); do \ $(MAKE) $(SUBDIR_MAKEFLAGS) TARGET_DIR=$$d/ -C $$d $@ || exit 1 ; \ done @@ -1071,9 +1071,9 @@ endif @echo ' ctags/TAGS - Generate tags file for editors' @echo ' cscope - Generate cscope index' @echo '' - @$(if $(TARGET_DIRS), \ + @$(if $(TARGET_LIST), \ echo 'Architecture specific targets:'; \ - $(foreach t, $(TARGET_DIRS), \ + $(foreach t, $(TARGET_LIST), \ printf " %-30s - Build for %s\\n" $(patsubst %,subdir-%,$(t)) $(t);) \ echo '') @echo 'Cleaning targets:' diff --git a/configure b/configure index db8c9d8288..14b11130a7 100755 --- a/configure +++ b/configure @@ -6128,7 +6128,7 @@ qemu_version=$(head $source_path/VERSION) echo "VERSION=$qemu_version" >>$config_host_mak echo "PKGVERSION=$pkgversion" >>$config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak -echo "TARGET_DIRS=$target_list" >> $config_host_mak +echo "TARGET_LIST=$target_list" >> $config_host_mak if [ "$docs" = "yes" ] ; then echo "BUILD_DOCS=yes" >> $config_host_mak fi diff --git a/scripts/create_config b/scripts/create_config index d727e5e36e..58948a67a4 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -107,7 +107,7 @@ case $line in target_name=${line#*=} echo "#define TARGET_NAME \"$target_name\"" ;; - TARGET_DIRS=*) + TARGET_LIST=*) # do nothing ;; TARGET_*=y) # configuration diff --git a/tests/Makefile.include b/tests/Makefile.include index 86f90c0cb0..9854e7794b 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -858,7 +858,7 @@ endif # QTest rules -TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS))) +TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_LIST))) ifeq ($(CONFIG_POSIX),y) QTEST_TARGETS = $(TARGETS) check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y)) From patchwork Tue Jun 5 16:05:39 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: 137773 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1148975lji; Tue, 5 Jun 2018 09:11:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI5bDhYBkGonaEmNdWjjtd2UNJC+5JpaVxgVAQrCWZY/zcqVk5oJPN6hYsVCI1klF4x4341 X-Received: by 2002:a0c:d6c7:: with SMTP id l7-v6mr5038984qvi.36.1528215083499; Tue, 05 Jun 2018 09:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528215083; cv=none; d=google.com; s=arc-20160816; b=YprtVYrCdrZf0BuMcqOgeK4jnqfpobSWHt78C3HHDqn3aJr57VWb5DaGRU7HIpYmgj ZPaQqhEHqpW4el0sPd0NiPmxOHVdqunLf9jWfwUaGhGjBxwdqXAfVLXA4kR05f2LNJQy rRODkQCmADqqrasqIOhWIKPccMBl7Dny8EPEkGnC1W//8viSkF96l19nrfk58ZNMp2AH PMZ4GyGwzlBhNHURbEisIYLSzm3NiYKGofO+vZguFz87r1P+QXCvCJn1S0Bmi4lqn3Yd 4kJgmLFIOEiCY9Xn3HxxiYgDV8b5ksfi8HKwZ/d7TUYHfZwsRM9EJSq/0lKthLK9CaAg 3v6Q== 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=jMJ7UnonTvICh94hzGHaO2zm7CZtkOWcDq9HjXExOis=; b=uFcLjVfXRG5ini9EOA34b1HQzIlNm6615gLOuv4I+HYhoJ7sqAuWYCFVYoLssBGvpE O92NK6nvCIA7ePVDlY8gKpXo8kjXmUdgjNnbIiNafeS0VrlPh/O0xV2e1JTFDM+StXte aZsJjhcWL14z5VkxJk/AZWJcPFOFqGCKlSGGxYnRC8pM78icsaydzR6iLCQgkDOughJL AI/on2MsBBowPi0HCKyedPOHM9m+ZrWQw4TTObX+9UGP6/MfPeFW/Po9NCpislP6fQJz Wbcp9my2yGEYwNZQtOVwiIEA4+OqOoe5V8Tu3+iJ/RmiZ94B1tLRqmYexTPHEISLfglG YV/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=M/3XDZj7; 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 m69-v6si1832120qkm.126.2018.06.05.09.11.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Jun 2018 09:11:23 -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=M/3XDZj7; 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]:47866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEYM-0002Xh-Vk for patch@linaro.org; Tue, 05 Jun 2018 12:11:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVD-0000v2-8P for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQESw-0004L5-LR for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:07 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQESw-0004KQ-Ak for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:05:46 -0400 Received: by mail-wm0-x243.google.com with SMTP id v131-v6so6186056wma.1 for ; Tue, 05 Jun 2018 09:05:46 -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=jMJ7UnonTvICh94hzGHaO2zm7CZtkOWcDq9HjXExOis=; b=M/3XDZj7ntBDnB0e+404M/iFjzBRP6sDedjatwo6zq2HeoMiwjRx30aBVxWXcngwHo kuz+qTwkLqJvT22ICXqEMCyqOCrDrdHgIAR2xOXy199UJL4utIL4NU6iibYF7n/BzvMX bItxBlgNr+khwKxj3SsaDcKWjLX+Qfz8k5fQ8= 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=jMJ7UnonTvICh94hzGHaO2zm7CZtkOWcDq9HjXExOis=; b=lK8bN1KSVfCv3BgbpDSI+twhkVMXT3VMQJjbh73XtTWnSGeEuSv+xfJf4NvzYKP+VD QVGQiOlilGww2/PK/BLf1omrBMvcUYSeWNjUXoYxnxd2jOeg9O5LC/l0D6FKKlCUR5Q5 qgTDGMFmjXepta7+hir8KTavtrPXCS45MvqF5TtMSFCANh3wOHN3VkhLcBGn2Su2Xesx dc+xRipOi7sBnLLCvh5oTjmaxtPmzwENx0efqo4wAlITYlk7zubreC6+pTjfnAJ1+wiD CR8a1Kczj+6yODWsTlWkOdRerjkAvxEm0DOQcHQYviS/jhQON/lWjcBByz53FsDRl+xM zAOQ== X-Gm-Message-State: APt69E3EvSHaZlLcwcctJIc08ze2TXX7DzP/OAo8EZl/w6ZBbh4wC7RS iC505MJKCiy8A0z6A/VH7g4W6g== X-Received: by 2002:a1c:8ec1:: with SMTP id q184-v6mr11939091wmd.48.1528214745210; Tue, 05 Jun 2018 09:05:45 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u11-v6sm2578207wmd.7.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 E5C193E0A0B; 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:39 +0100 Message-Id: <20180605160541.10664-5-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::243 Subject: [Qemu-devel] [PULL 4/6] docker: Add fedora-i386-cross image 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?= , Fam Zheng , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng It has some basic *-devel.i686 packages to be used with "gcc -m32" as a 32 bit cross build environment. Signed-off-by: Fam Zheng [AJB: add glibc-static] Signed-off-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé -- 2.17.0 diff --git a/tests/docker/dockerfiles/fedora-i386-cross.docker b/tests/docker/dockerfiles/fedora-i386-cross.docker new file mode 100644 index 0000000000..8fbef2fa53 --- /dev/null +++ b/tests/docker/dockerfiles/fedora-i386-cross.docker @@ -0,0 +1,14 @@ +FROM fedora:latest +ENV PACKAGES \ + gcc \ + glibc-static.i686 \ + glibc-devel.i686 \ + glib2-devel.i686 \ + zlib-devel.i686 \ + glib2-devel.i686 \ + nettle-devel.i686 \ + pixman-devel.i686 \ + gnutls-devel.i686 + +RUN dnf install -y $PACKAGES +RUN rpm -q $PACKAGES | sort > /packages.txt From patchwork Tue Jun 5 16:05:40 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: 137775 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1149630lji; Tue, 5 Jun 2018 09:11:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLjsJoFV+opGM/B3VP+DsNkFW/zIjCu/W0gLWgbCTEpc8FWsc937n9F6nGe5Rj4ve00M/RU X-Received: by 2002:ac8:22a1:: with SMTP id f30-v6mr25412426qta.358.1528215117867; Tue, 05 Jun 2018 09:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528215117; cv=none; d=google.com; s=arc-20160816; b=l2ItcZk1PMTj10rJcEi4kNCXH2pa3Y7dkyBFxi9TCTGdT9ZnqQCg3GRMtBzrQMWMUj HE6kEdts9lVllywXsyhURPbewX2tvPspU1ZwSEp3dOpceRzJf36kW4xvdAMJi5f2zYJS QHXru3PjqlkJqEH4b2mHmqw34w5F4yyxowetTnXKvL361zzvgBi6/N+CnOuZBwwU84pV s1AwF+lvFXl0Gz7nlnadUDSJJ0eXNA82myz0YxeIqF3OgYQS8eiWxPQpH3T+7cuhN1Yk 2E14Y1MILsWm5M0QOmfN/TiosdeuLeBygEJmho+wBq/roOoU1A+IG7POLGFHjS7RKK7Z N9jw== 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=gZJdSwuJp6NdScm9/QvDPKdtIjVvPNu1zaSAitr2bmk=; b=F/7/VN0vcxZK+/CdyCk3UI7TXkQKIafxP55DCIe2nvZ1UV7NtMkIV6LrFhWG/uHlmD Mkv4rk0Cax8J8IjIgGptkLHxsE5p4RScs597bkkWQ0KOzk6Akv1aKSWi6ggHFSO4jzCW JhL4XKWgPG/Vg/UKpBI3x1MjAwKDTp5/DwT2xwYNpkV9aiu/p4YEFz3u+xYqXu9hgV5C /mzE5cs+aHQOUYem464ZT+9npTvwSUCnigvqmYytniOiZSzc/gyuS7tH4BNrXXNAa2kr 4T+QoNBirDOol0Uhsa+zTnucnAv1LUxW+9pw+s49ozbb9QRWiXtZRX8OTeYIZvo6HKxJ ZdXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Pr8ngk2H; 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 m7-v6si7447362qvo.247.2018.06.05.09.11.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Jun 2018 09:11:57 -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=Pr8ngk2H; 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]:47886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEYv-0003x7-8m for patch@linaro.org; Tue, 05 Jun 2018 12:11:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVG-0000vB-Ke 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 1fQESz-0004N3-Eq for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:10 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:52857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQESz-0004MY-3J for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:05:49 -0400 Received: by mail-wm0-x236.google.com with SMTP id p126-v6so6010396wmb.2 for ; Tue, 05 Jun 2018 09:05:49 -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=gZJdSwuJp6NdScm9/QvDPKdtIjVvPNu1zaSAitr2bmk=; b=Pr8ngk2Hy51E+f+BJbaxMPpS/KrQTfZYpJK4HXOsASa4Dh8oCnXEB8ib2BWG/YTUUP GGXQGO56p/jddd4slmW2LLKe0uz+RdqfbDvfoQ/plubT7SvF+YSUFjUKQfflpQpy07J2 9tv3Frw856Uj/vLvaQ/XSiFCx6Xzj7svOJmNY= 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=gZJdSwuJp6NdScm9/QvDPKdtIjVvPNu1zaSAitr2bmk=; b=Epk8wYTGxUjSe1iDwFtWt4E1exgyE6GYYbQwaqqDkHmH2C6pFXCjPT9YVuz6MH2cb0 KrwPKkazLOQ2f8vYi+7zORMiGzM9HA+oV9YDwWdOqWckutY5vlNHX22akF9ntTkDR9Zg 1O/z7/KMnMzDkLH+zUWeJ+XhHIjZkMbq1qKN35tB9C3D0BCV4Lj2XXWjzC3/cbDP81rO pOfhsveWxvLMn5u6zSrrRoOmkqddShgTk7o3AK98WLyZR0Kz2gGD1mBqDL8ta/7WTCqz Ob5/yf8oOyXFUJ0Pvwd4Qys4fdevBMMbeb09Zc2Vrc/BBEfSzLadWL+R/nrbwKtj95rb YwAw== X-Gm-Message-State: APt69E33sSNyMWdI4+COQTLar59ixunmaOLW1hluvILYKwS9fmtZSFvn dYXZmMfrTwB9fCrxlM4/6RwGSA== X-Received: by 2002:a1c:1815:: with SMTP id 21-v6mr4917294wmy.72.1528214748019; Tue, 05 Jun 2018 09:05:48 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u16-v6sm5794594wrq.2.2018.06.05.09.05.43 (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 04F5C3E0A0C; Tue, 5 Jun 2018 17:05:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 5 Jun 2018 17:05:40 +0100 Message-Id: <20180605160541.10664-6-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::236 Subject: [Qemu-devel] [PULL 5/6] docker: test-mingw: use SDL2 and GTK+3 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: Fam Zheng , qemu-devel@nongnu.org, Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Do not test the deprecated API versions. debian-win32-cross and debian-win64-cross are already using SDL2 (they do not cover GTK+ at all). Signed-off-by: Paolo Bonzini Reviewed-by: Daniel P. Berrangé [AJB: fix merge conflicts] Signed-off-by: Alex Bennée -- 2.17.0 diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker index 65d7761cf5..7d1d008002 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -11,12 +11,12 @@ ENV PACKAGES \ numactl-devel SDL2-devel snappy-devel spice-server-devel \ systemtap-sdt-devel usbredir-devel virglrenderer-devel vte3-devel \ xen-devel \ - mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \ - mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \ + mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL2 mingw32-pkg-config \ + mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \ mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 \ mingw32-bzip2 \ - mingw64-pixman mingw64-glib2 mingw64-gmp mingw64-SDL mingw64-pkg-config \ - mingw64-gtk2 mingw64-gtk3 mingw64-gnutls mingw64-nettle mingw64-libtasn1 \ + mingw64-pixman mingw64-glib2 mingw64-gmp mingw64-SDL2 mingw64-pkg-config \ + mingw64-gtk3 mingw64-gnutls mingw64-nettle mingw64-libtasn1 \ mingw64-libjpeg-turbo mingw64-libpng mingw64-curl mingw64-libssh2 \ mingw64-bzip2 ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3 diff --git a/tests/docker/test-mingw b/tests/docker/test-mingw index 503a6bc6f7..7cca7e16a6 100755 --- a/tests/docker/test-mingw +++ b/tests/docker/test-mingw @@ -28,8 +28,8 @@ for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do --enable-vnc \ --enable-bzip2 \ --enable-guest-agent \ - --with-sdlabi=1.2 \ - --with-gtkabi=2.0 + --with-sdlabi=2.0 \ + --with-gtkabi=3.0 install_qemu make clean From patchwork Tue Jun 5 16:05:41 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: 137776 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1152197lji; Tue, 5 Jun 2018 09:14:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL1PNL1fLNfIDpsb9JJHvNmJ8zlrskQ4J94UqJTMkxnhfLX1bpYGuHxcbJnCkDwT3OT9QOD X-Received: by 2002:a37:1563:: with SMTP id f96-v6mr23686840qkh.150.1528215261948; Tue, 05 Jun 2018 09:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528215261; cv=none; d=google.com; s=arc-20160816; b=S2zQe/YdRH0K6BhaUOmFCvOejrRNsvOfbYfb1oHpVL3Ce0PEccQBc/3cyigRUtUfcI 5KtNOt7FAcTirpmx+znWDtkR3Jef6mtI1Pji57XuTXUeZN+VyyfwkheF5VwezRi69wYt bvgPwqESe/0kL88Gr7oX2GGDxHzWx/d38iWEFGkBCqnug+qUwvuOruzTGzbWyuXr55hT q6p+ibBOSRVbOpjsB8OlGWmtfzXNVeIErQQvjW/NYCF7ZfSWJj5Cjsv8uJqW5fsL1FyT EaaFmFFw7x6CMOvbGwB1itX7xH+/MAKI4kC076XPHeGnMmak/qMF+6y9jrqqLGrnaF+S ErFw== 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=OGpFyjcgVIZChLMxqJQLbygV+FvJ2VIx0W9zOzdAHC4=; b=Hg0DhHuQG5Y6Jx/oJnFy4u8Er0AaznD1pwDhz60LafB7lxLFOOt/KbsfRRwxWu1vsk gLXYHzdkQdNb+AZE/HWRVDe9PIUGaD8EF37PVkBzy5ql5xZ5odQgnCj7PIN0IL6bNvVl Y4EVYeAf/EVpPGSP15Rbf6e9O8Xd2FDEzkqMTs4uYFPbKaV1QNvWFBTUVh37QrNzFxne pH1NTlPOb9whup7BKQi67tBzG+QS9goSu35EgBuOUsUWVnInO/mWYW09zRoi0oej4ubE EEA9U2rW2MJwEXkEJkPKPaSHPBr298+OMlEcrix8lKs5kbLVULZcNRs5Nw4aJjXLpv6Q qbdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eMRkxCRL; 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 j4-v6si20996279qka.169.2018.06.05.09.14.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Jun 2018 09:14:21 -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=eMRkxCRL; 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]:47889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEbF-00056m-Cv for patch@linaro.org; Tue, 05 Jun 2018 12:14:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQEVG-0000v7-4Y 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 1fQESx-0004Ll-Hh for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:08:10 -0400 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:38387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQESx-0004Kx-5M for qemu-devel@nongnu.org; Tue, 05 Jun 2018 12:05:47 -0400 Received: by mail-wr0-x235.google.com with SMTP id 94-v6so3030849wrf.5 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=OGpFyjcgVIZChLMxqJQLbygV+FvJ2VIx0W9zOzdAHC4=; b=eMRkxCRLVRRpfHYKqdlLi+sbIAOJDOQiuL3USG1y7rcoeY6aC/OnSwwhG5eW+1r4bd vVBo6Dl5ZWe3kjuhA00qviG/p//sFZNj3E87ncBOBTyLju+IccZgq7sg+xD32I3BC08V W0Kg6awWo1dF2aCj+cFJ8DYEDg4vT6e1dJd/w= 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=OGpFyjcgVIZChLMxqJQLbygV+FvJ2VIx0W9zOzdAHC4=; b=nFraRnGmQVnSpBo8SZy6pDIEROaK7cB79CI5RPMB/B7h3Xy2GzDsLxdMw96bvLR9lV 2vARFDbZD9BtnNh4huMnYzUdfjYDazm8AY5jkkwty8zFVDWpMG49Vrfou3Q3qMh/mOzo DK1qConUjHEyB8FJfDA54nH1OinnbRLPl9qv6gTuZwYwtjs+XaGo3aHWQSLeYEC+Ua/G ZICcG54JKN22If20I5AI4BM68Hh0qALy0f24ijE7Slm9XHZtO5v+86lYDeWslC4e0EPb 0Q1YI6oFDR/Iy1UiFt9P3K6jaoEVkIN68YVYl+6gPsTzxgoSXi0JwvAvN0RDJOEAzu6S 0Z6A== X-Gm-Message-State: ALKqPwfWrifi52ppUzZqcQLJla1R0b3nIZm016AxL+YGh+THzAUk7oIa tPW8vjC1AKXhXdtcj82PC/LzbQ== X-Received: by 2002:adf:a949:: with SMTP id u67-v6mr19071901wrc.71.1528214746032; Tue, 05 Jun 2018 09:05:46 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g75-v6sm2703475wmd.15.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 18AB23E0A51; Tue, 5 Jun 2018 17:05:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 5 Jun 2018 17:05:41 +0100 Message-Id: <20180605160541.10664-7-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:c0c::235 Subject: [Qemu-devel] [PULL 6/6] docker: add debian/tricore image 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: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé TriCore binutils is built from Bastian Koppelmann repository. Note: There is no TriCore compiler in this image (only assembler/linker). Signed-off-by: Philippe Mathieu-Daudé [AJB: base of Debian9, add to Makefile.include] Signed-off-by: Alex Bennée -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 9d5749887a..74fd51c22c 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -63,6 +63,9 @@ docker-image-debian-win32-cross: docker-image-debian8-mxe docker-image-debian-win64-cross: docker-image-debian8-mxe docker-image-travis: NOUSER=1 +# Specialist build images, sometimes very limited tools +docker-image-tricore-cross: docker-image-debian9 + # Expand all the pre-requistes for each docker image and test combination $(foreach i,$(DOCKER_IMAGES) $(DOCKER_DEPRECATED_IMAGES), \ $(foreach t,$(DOCKER_TESTS) $(DOCKER_TOOLS), \ diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker new file mode 100644 index 0000000000..898b8dd511 --- /dev/null +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker @@ -0,0 +1,23 @@ +# +# Docker TriCore cross-compiler target +# +# This docker target builds on the debian Stretch base image. +# +# Copyright (c) 2018 Philippe Mathieu-Daudé +# +# SPDX-License-Identifier: GPL-2.0-or-later +# +FROM debian:9 + +MAINTAINER Philippe Mathieu-Daudé + +RUN git clone --single-branch \ + https://github.com/bkoppelmann/tricore-binutils.git \ + /usr/src/binutils && \ + cd /usr/src/binutils && chmod +x missing && \ + CFLAGS=-w ./configure --prefix=/usr --disable-nls --target=tricore && \ + make && make install && \ + rm -rf /usr/src/binutils + +# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV QEMU_CONFIGURE_OPTS --cross-prefix=tricore-