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 80DE5C001B0 for ; Wed, 19 Jul 2023 23:54:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 834BE86822; Thu, 20 Jul 2023 01:51:18 +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="LoEHRStN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11331867D2; Thu, 20 Jul 2023 01:50:28 +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 D4278867AB for ; Thu, 20 Jul 2023 01:50:21 +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-78654448524so8325739f.2 for ; Wed, 19 Jul 2023 16:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810620; x=1690415420; 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=7Al3N7r6jyplHoefzKiSjnSVXRHeShLowkJLf03OWMU=; b=LoEHRStNQy1J49j637wiesDkMG2paD3lCh3HO8DjO+/Z4cIZST1d1huRLnGxx8N5y2 Cbe7MO6STGOe8TWBfTmu87hws8llWXutKeh6kZZkmSE3keuCBNNQmQBlXgli3w2zGeDw 1YQG83A/7ixueaNuFLIsQVA7FItl7Bkqo3D60= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810620; x=1690415420; 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=7Al3N7r6jyplHoefzKiSjnSVXRHeShLowkJLf03OWMU=; b=BSgF0a9j0pISeO0PRT6tG8Gr5mjfPmHUA1rH7cuXBpo6BCk1sI8iRHOZ1DXWmwqYFL NaPrYGX7Khrnc/Rhf1qYLrBIh4xiLTlH5UgzAWAbKIEGStfvHAZc8qFvXX2FIgr5wYeY kR3ECZBeTkM55moRSAG8/QG95LUHsuywVMf+23BYVhaXMCF/eUMgep3n2P91bWJsTqlS 0bd/qYyAaasYIQV0671pRS79nGt5hOqACQTGnawsfMTiMp6OpVYGarA0ndkRBjaHZCq2 AsQKMxgIqkgjUqH8aKrAlMvg+AsBUoAbrRX+HYa+mTW6rMzikz6PFU6hK9xQ/yzc+glt ee/w== X-Gm-Message-State: ABy/qLa26CAMz6jHcipBbnTbtSnpox9pc2r+gw0Q1v3UsunpNmomjbZk ndCINilHxKEOzRSI9WlSDAiVZxunSOd5lcK3rEY= X-Google-Smtp-Source: APBJJlGxa07OvsFLPRCocKXZhyU25Lf7CmL6zm3Zv9zGNC2bywOQy5YELK6slgS2cPDcveTxSXJbHg== X-Received: by 2002:a6b:e80b:0:b0:774:8f64:82a8 with SMTP id f11-20020a6be80b000000b007748f6482a8mr7170462ioh.18.1689810620486; Wed, 19 Jul 2023 16:50:20 -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 ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:20 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 28/83] buildman: Drop use of builder in show_actions() Date: Wed, 19 Jul 2023 17:48:36 -0600 Message-ID: <20230719234953.796101-29-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-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.487.g6d72f3e995-goog