From patchwork Fri Jun 15 19:46:17 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: 10467533 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 12E0260348 for ; Fri, 15 Jun 2018 19:59:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03192281E1 for ; Fri, 15 Jun 2018 19:59:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA90128511; Fri, 15 Jun 2018 19:59:53 +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 5826E281E1 for ; Fri, 15 Jun 2018 19:59:53 +0000 (UTC) Received: from localhost ([::1]:49034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTusy-0003oY-GF for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 Jun 2018 15:59:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTugj-0002Ur-LK for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTugi-0005HW-G6 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:13 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:38765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTugi-0005G9-93 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 15:47:12 -0400 Received: by mail-wr0-x242.google.com with SMTP id e18-v6so10983222wrs.5 for ; Fri, 15 Jun 2018 12:47:12 -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=0TZGa3eVh0CeTpRHUcHQmNG5wlIovi0NoSw/xt6gy/U=; b=AT4LgdQaGbXKgo61MLPyFqtA3ct0jg3XhXv6R2mPAIgQhSi9B/6wKl+TUoOeKW3iDM +XtIqIKm41NwsXKmqrUJ/U5rTkvHu4VfCy/lxd0k6DKP1b9k0m1rJnQ02wfW1atd2RUD b8Q9upIkgkqMCC3s5SRg6cZ+Zsp1tNWhoiSLE= 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=0TZGa3eVh0CeTpRHUcHQmNG5wlIovi0NoSw/xt6gy/U=; b=GRbkUYWUKWwP5iOwjgRIQQUyzVrtvcW7bsr9sGIObHX6PSmbirIC8GudYNbT6/iFWw tfVVg11VfBCNOiaZ5aALEMcRcj5t67Zi04Uw1KsVWhD/ZWIlyvsydzFjM/y+J9Nm3Pb6 +Ujt03zfFR1PdaXDOpP5llu9thS8i7zqT1e8dMIw2M1WGq8x8rhj9Mt7tGZYeYPmkvxg shcGSYH00Qx21u0tYdNGDF2IZ7n6wU4JKbXHk0X73d9WK4msa3ajA0oZpv0kDOXH3JpI BH2sE50QKLBiYijdMdBjXpDmO68ivwJNO2qDprA5Y47FomKOCo6McRJqXsMWAHmszTQd 1eSQ== X-Gm-Message-State: APt69E3OL1bu4TDaGV0rfpOTFX4td/XaDjO0zIFh6xU7Yod1L22L398a bk0+BY/ph/uWGR9HbDhC01LOlQ== X-Google-Smtp-Source: ADUXVKJW60CPTc2ZVF5cYbNLsNcyMZs+7gjAfC5e8bkqWqilrbR8bRCFg1Tqu1PbiZUbzuvwetfkLQ== X-Received: by 2002:adf:8ab9:: with SMTP id y54-v6mr2638301wry.98.1529092031165; Fri, 15 Jun 2018 12:47:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y5-v6sm10168431wrp.51.2018.06.15.12.47.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:47:08 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E57813E0611; Fri, 15 Jun 2018 20:47:05 +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, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:46:17 +0100 Message-Id: <20180615194705.28019-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194705.28019-1-alex.bennee@linaro.org> References: <20180615194705.28019-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::242 Subject: [Qemu-devel] [PATCH v7 06/54] 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=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 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(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 4cd6f9b8ec..663dfcba4b 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -416,6 +416,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""") @@ -429,7 +431,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)