From patchwork Thu Apr 19 13:58:27 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: 133772 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp679660ljf; Thu, 19 Apr 2018 07:07:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqXmxw4UfNIkq5Qq1wAmbrKaQaey1ppi+wo2ktDGBAqAy+yQIc/h/RvohbST+VMlxQLYX6c X-Received: by 10.55.215.84 with SMTP id m81mr5866328qki.278.1524146842545; Thu, 19 Apr 2018 07:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524146842; cv=none; d=google.com; s=arc-20160816; b=ZhEZW7Ysdh0MGi2yvsXKScrS6VrEqbb6aGPqvxRov98oLar6bdqmJ6ItFCDWTcJl5t A5Ovnk9bkwcJhXME3sGXodgXiLhJjU01edzncZghHZanTjwMFAxGduMBHYp4Aa4j1iUr A1rMph0scocOtLbetBosAOrKLfIQ1rxLHH/LCELXshj2JAskkTyI71YSzdomLCwvf07g u4yqihDqmmAmL2hmnH0f+BPd1XLX/vY3ivcOC8hRuFI0wDzmdR3qc/98Jz2Uv5Xbrk3T FcfFMQna3b7+ZotTkvWb9BU79HhJ2W36Twza7i3S2gJJPKSIR7Kechj3VlucnNIvU3Av wd6w== 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=PotZUyOt6b4te5W9l96ZklU65MqBhhmo3ReGmsMNrMA=; b=J9pr3KlA3qGoEOOWF5mXidXTA782bWEEjqofQHMDY7enRllCfmk11E3nRhVdJ+7qmu H44+IXend19m4krxo5yBH0B+Ol6MZ/Lm90uGS3h9PY5rqVw/aqsOzEza0lwIdVrLthUb i9QyDv0nZXmER4a1HXoxsgqxS1xXG0fiTlUnDIIbMsZ8dBUmDwdZh9s4s79iCFJKOYLm DXj1QlaVQva2YMzJ1eRWWQ9SOp5Tp1bXbP8LZsKMheeNK7TiMIOVd0e4TjqutQqTEP3u n99MQDoop7dHm6SzGJWBwNwFFtWeemEBW1wAhFH7mvBdSwaL6H7ZS1uDZNeswhUGq3co 1J9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZzyAar+o; 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 w36-v6si4958366qtb.19.2018.04.19.07.07.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:07:22 -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=ZzyAar+o; 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]:49853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9ADZ-0004CV-V6 for patch@linaro.org; Thu, 19 Apr 2018 10:07:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9A5m-00066B-Tn for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9A5j-0002Jl-2Y for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:18 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:42089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9A5i-0002Hk-SX for qemu-devel@nongnu.org; Thu, 19 Apr 2018 09:59:15 -0400 Received: by mail-wr0-x241.google.com with SMTP id s18-v6so14329581wrg.9 for ; Thu, 19 Apr 2018 06:59:14 -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=PotZUyOt6b4te5W9l96ZklU65MqBhhmo3ReGmsMNrMA=; b=ZzyAar+oSUcupbceItUU/2ZSPRMo7cl8wTmGAH4oUnpGPy2cKl05IBUdsM1vEQgIK6 hVOPYvQz7nKVwyIasUQNl/6+iz3zzbRxeqmrh5dJG1qnnFqjehIJ7JGU8v1xoireBs+Z W65HLPiufUfWRwhbhPI/xanw/pZ5uV0qxMtT4= 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=PotZUyOt6b4te5W9l96ZklU65MqBhhmo3ReGmsMNrMA=; b=Qpq2qO7RvLTg12gkuy21GwlawjZ3i+ngEwAUUaB/pIsD/PPwZQDdgMUf/yFd2PHvKq WkZcH2QX9H+h5fUMS1oZ1zhn0YMazv2dIp8wf3TVat4jQS2oe3GoczPi4bC4OmIY6+y7 886YLaHOhZodXlhlHGQ2FAFXDO4df91dKtUAQN/foS2+JKSXrRrXX9lrcHyDWkZHTEu9 Qd9oSzO2ZFfm0ATZ//qUZ/hDjkvFXjBYWybTX8Y6VgWFBFGaZ82DnBFl0Wv/kisfW49h /DPaOHV3vpi2IiVO254OVD4ctNdnmJPxy4ydtA1qo3uXDYMjXadm/PjLMb4UW1OZCoj1 afFQ== X-Gm-Message-State: ALQs6tCbEjYS8Z4RbXASqUZ6BTOQ7kS7O4vMfdzF6uEVCnMcedFNr1Yw p99Ixa+s3B8EFrWJRkFIQA0USg== X-Received: by 10.28.232.202 with SMTP id f71mr5067593wmi.136.1524146353716; Thu, 19 Apr 2018 06:59:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u14-v6sm3720327wri.31.2018.04.19.06.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:59:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 36FDC3E03CC; Thu, 19 Apr 2018 14:59:02 +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: Thu, 19 Apr 2018 14:58:27 +0100 Message-Id: <20180419135901.30035-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-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::241 Subject: [Qemu-devel] [PATCH v2 09/43] 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 --- v2 - use arg.cc default to simplify logic --- tests/docker/docker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daudé 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)