Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B350C001DF for ; Sun, 16 Jul 2023 00:41:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8631D863B9; Sun, 16 Jul 2023 02:38:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Wztfk/Z3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D9AEA863F0; Sun, 16 Jul 2023 02:37:51 +0200 (CEST) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0B0688638B for ; Sun, 16 Jul 2023 02:37:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-783546553ddso118631339f.0 for ; Sat, 15 Jul 2023 17:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467861; x=1692059861; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pP4vP/UHY0FXrcO2suYkrHZYwNajSt0BTeNG5K5KIjY=; b=Wztfk/Z3NZu/SWv8KzHedt2LPfdsGekDq61vHfgzdG5AvS2vcWbbfj45nM6HC0HBt7 bWCpousqQ2ull21pwRcvJ2nzDPP2x4sI6+g5zFWpsMseNyNhDBe9xgGHvdjJIsNHUKko nBy4PL/YjO9DzbXldeICADVgCfe7kIEkPjb5s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467861; x=1692059861; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pP4vP/UHY0FXrcO2suYkrHZYwNajSt0BTeNG5K5KIjY=; b=ElwpVKplCqwHTR5Hj64r3ZSU0lWpYYez0xjq9SIpwVlHOcrpKNB6XF0c2bFbls5HjB U7IIlHaU7rNONU3SIRWLJBR92skebaORcLNEKOSOYutbZ6Ar4v6uA/iP7OkFkj5GGBMQ YXRhgNrenLe2HHVDoHZXFzcLY0xlyE/4lcRcSSC0WGM8wYfx3i6519N42dP5Mv+MBxpw jDLADq+ZW4DWK6eQEuoePXLINwkZLWRAJkbk9FGYqSXlHUaJuk1q2Eur/3XceILt1GLz ajyx3LwhExXMSb/Butr5U4to/XagyX3BQtdn1qMt2DQuDvhaAeiYdzUgKAeSZLXWQykN HkXw== X-Gm-Message-State: ABy/qLbm2Ltp3DMoLesPhcW4tznPuUk20Kux/CrevNwQRL4wPQ+weEm+ gAXMpDcK7sx7/COtppbZicSRRmmcDobDTLvIH9o= X-Google-Smtp-Source: APBJJlHQIOv/o7KCmVKI5l3ZqBYxUykE6Cy23Jjxu3mEGR1ZCaNwgm7TFiZLild82CXnP7KY4ObShw== X-Received: by 2002:a92:280c:0:b0:346:7038:8506 with SMTP id l12-20020a92280c000000b0034670388506mr8279750ilf.2.1689467861715; Sat, 15 Jul 2023 17:37:41 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:41 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 26/81] buildman: Drop use of builder in show_actions() Date: Sat, 15 Jul 2023 18:35:54 -0600 Message-ID: <20230716003718.231903-27-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This function only needs the output directory from the builder. This is passed into the builder, so just pass the same value to show_actions(). The avoids needing a builder to call show_actions(). Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 5762ec90c0bd..0aa19a279628 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -48,7 +48,7 @@ def get_action_summary(is_summary, commits, selected, options): return msg # pylint: disable=R0913 -def show_actions(series, why_selected, boards_selected, bldr, options, +def show_actions(series, why_selected, boards_selected, output_dir, options, board_warnings): """Display a list of actions that we would take, if not a dry run. @@ -61,7 +61,7 @@ def show_actions(series, why_selected, boards_selected, bldr, options, the value would be a list of board names. boards_selected: Dict of selected boards, key is target name, value is Board object - bldr: The builder that will be used to build the commits + output_dir (str): Output directory for builder options: Command line options object board_warnings: List of warnings obtained from board selected """ @@ -74,7 +74,7 @@ def show_actions(series, why_selected, boards_selected, bldr, options, commits = None print(get_action_summary(False, commits, boards_selected, options)) - print(f'Build directory: {bldr.base_dir}') + print(f'Build directory: {output_dir}') if commits: for upto in range(0, len(series.commits), options.step): commit = series.commits[upto] @@ -427,7 +427,7 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, # For a dry run, just show our actions as a sanity check if options.dry_run: - show_actions(series, why_selected, selected, builder, options, + show_actions(series, why_selected, selected, output_dir, options, board_warnings) else: builder.force_build = options.force_build -- 2.41.0.455.g037347b96a-goog