From patchwork Thu May 17 17:46: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: 136172 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp242404lji; Thu, 17 May 2018 10:54:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrANfyQgarzljg2J1vSCqVsBZVmBdtvsnIANWM9j+sOdwY3iIZhBMIKk8uHkahUvgH9fBGb X-Received: by 2002:ac8:1105:: with SMTP id c5-v6mr6245861qtj.307.1526579659380; Thu, 17 May 2018 10:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526579659; cv=none; d=google.com; s=arc-20160816; b=dZZSPo1TGqCF8pdmlZ683r6CWrPfadX1tpPBq/1I5DXwYfMLOUdy9TlWcivOHuhjMV xbNfO+ojMBaxKRaWh5ims9HUM028P3KjckbYBJYGqQOstTCu0MS/4rCFxix5Hmi8+RoN XsOmv3GNY/2FQmE5T1s2LwFcG/b1by2Rq4LbIvT8311VKhDLamBDsN+l5AsX0iqWwW4T 15cJaXc3o0Z2sb8vGCpgLy52hrKWTc5Gs4wrwKxkWOzUDyl2DQ7tlaewhmVtjasyy8jM 7BXXnk3cQwy+xtb/5wY4vK4OAcuxUOkhxUHGdEn9O/psKMM6nJ74QEqiAJo6w6SFdepc eBfw== 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=0NSInJZhrOmC3q3A4nal6f/raMjxYjeK2ZWMf0DVRek=; b=v+m6XD9scqVEL0CeBTHtkVyFuOWNDib9sHy8Y+fBm+iB6qPr8soooZulZLX23myVLf npc7ZaWgx7FM6meXQdn02DcIn8H9C0f79SsnwP8LfNy5VKmzLSlfEHZoQoP9HZ6ktpYn lsvjz0w9E3+EglKv4ur/UesBeHPQCI9OtdpGJqggxB1vxLrPHlZw25y2LRPrUKZJKzee WEV5Y0KdRVSHlStLQOPUtyOGT3yYONAanzPtK1xB2y5nR3OXms169r8fGnOcvwC2eDcU UggY8++oDWi62Yb7SmoQzBkwM77a5Sz8qc7YmFyTJBKO7J8TqCNOIODrlImlp6dWenW+ e/rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XAg3e0rE; 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 q23-v6si2108600qtp.156.2018.05.17.10.54.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 May 2018 10:54:19 -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=XAg3e0rE; 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]:38459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN6Y-000333-S3 for patch@linaro.org; Thu, 17 May 2018 13:54:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJN04-0006IS-FL for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJN02-0003Yp-Eb for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:35 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:55531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJN02-0003Yc-6W for qemu-devel@nongnu.org; Thu, 17 May 2018 13:47:34 -0400 Received: by mail-wm0-x244.google.com with SMTP id a8-v6so9885718wmg.5 for ; Thu, 17 May 2018 10:47:34 -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=0NSInJZhrOmC3q3A4nal6f/raMjxYjeK2ZWMf0DVRek=; b=XAg3e0rETadkSezwdzHbSCxcv11TH761wTH4yC3jKuHp8srIeFe3NZF3IwNVf+pD+E HW8/JSgRt+O5SCsBncyds9cD+WJ6kxaJkhyLLrWCKwLXNy89mF7BWJLY4459ebjtmpAK 7EfSvggOXjwZ/NeqVtRlJPR96bYuhYidbYO0E= 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=0NSInJZhrOmC3q3A4nal6f/raMjxYjeK2ZWMf0DVRek=; b=DzoIAuEFnZJX3S9+Q4pvYS4HVGoDvDBFwvVxOLFMUA4hJedmSMxRT/H9bokhFKeooi VVpKX3mR3iBrXLRcenJODBR/HFCN5rIqSxIPfKAuxgdQhzYoqrzI0Yom+x9xAmrZFUDq ZILbZEe23ayPpqToMrmLKBluncyZssvPAUvJVzBoyhIjyU9a7/5DU70/H+SVhwDvz85t 3Z87heIcVuBMj+d8wkEv27Mze3zxDa8b7gVtEN6R97ZnsuZUKk9mhkW7qVL9kRO7ZpDo 0kkMKiHqnKTdHKAfuIZrH1FhT0GVkLvKoCOCi9TYKLxW/VlSSHA6ahp1yq7u5x3i4oX0 y2Lg== X-Gm-Message-State: ALKqPweOg07P3DlRHkvxCS7bG49E/cgW9gFFHXZgw011mWVX3nn9+MVP 7jvOgjYu8KviNd1YA0+rfdDPYbINv5Y= X-Received: by 2002:a1c:4518:: with SMTP id s24-v6mr2644485wma.50.1526579253002; Thu, 17 May 2018 10:47:33 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u20-v6sm5837058wru.33.2018.05.17.10.47.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 10:47:27 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 7ACC33E0DCD; Thu, 17 May 2018 18:47:19 +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:38 +0100 Message-Id: <20180517174718.10107-10-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::244 Subject: [Qemu-devel] [PATCH v4 09/49] docker: extend "cc" command to accept compiler 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" When calling our cross-compilation images we want to call something other than the default cc. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Fam Zheng --- v2 - use arg.cc default to simplify logic --- tests/docker/docker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index bcc3ee2dee..59bce9f19a 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -415,6 +415,8 @@ class CcCommand(SubCommand): def args(self, parser): parser.add_argument("--image", "-i", required=True, help="The docker image in which to run cc") + parser.add_argument("--cc", default="cc", + help="The compiler executable to call") parser.add_argument("--source-path", "-s", nargs="*", dest="paths", help="""Extra paths to (ro) mount into container for reading sources""") @@ -428,7 +430,7 @@ class CcCommand(SubCommand): if args.paths: for p in args.paths: cmd += ["-v", "%s:%s:ro,z" % (p, p)] - cmd += [args.image, "cc"] + cmd += [args.image, args.cc] cmd += argv return Docker().command("run", cmd, args.quiet)