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 442F2EB64DA for ; Wed, 5 Jul 2023 12:22:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C3EB8630D; Wed, 5 Jul 2023 14:20:38 +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="gBgijady"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7265F86237; Wed, 5 Jul 2023 14:20:28 +0200 (CEST) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 E4786861DE for ; Wed, 5 Jul 2023 14:20:25 +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-xd2e.google.com with SMTP id ca18e2360f4ac-7837329a00aso244898539f.2 for ; Wed, 05 Jul 2023 05:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688559624; x=1691151624; 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=0ZfeIrsZX/kWpI57PBiYK6ncMrfN94Bin3xU5Pr6vso=; b=gBgijady2jldBYUyYzlPSDlT1VrJt/V3oCPwrFNY6A1WySPWgbuFg0+5yB3f1E50OU b7aRhR1Fcit1eVeUVTS1Oo5H/tf9Xl2NoQpqrK9uSUITJJwXPEwpWWnGQai3pMwOIY6h +9NxcONFSyt6ctHK0um70bp9eBv8/cvoZ5Bys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688559624; x=1691151624; 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=0ZfeIrsZX/kWpI57PBiYK6ncMrfN94Bin3xU5Pr6vso=; b=ZxLg7Bo8h/GyF6dmweuEaWACi1iHvTY7mUSissYDy6wP7gGSJc6T2za0HRXF6EfoB9 pl6B67jA7Xv4BtY7sfa66N8sLaoj5nLJ7MFGmNTjuIS5T+nQtAu9t1HKlYTmu68Sinvn uI1xLbDx1QYBrMzwHIDJJfGx2RxZTg9cc8SkKyPs1/a90Z6TkBV3JWCkhPCw4SFqBG7L dmYa5A5zaErVBM213LcrHCbMdK54exIBEfou7jwMA8ftSBGzoq3+s150BTcnMgUQ1/iP VNfPMgj+Zxo/W7qnLFKt3oceAbXSIm+748AUcm5Vjaw+/FzRWi3klIowXRLii9rHSA6q gWzg== X-Gm-Message-State: AC+VfDxRG50zyPR2q7M79eqp+S5PcfsqoJ0nMHkGgln2Mxslifr46t9U WEYu+t0SitG6+49hCsQgfVKj3aDlZMp6mPDQH4s= X-Google-Smtp-Source: ACHHUZ70PVkYT6BAf+0sBF7yfUhLg3etfSaQ9Ge9zEcLVa0lxxk2LGAAIWCn0tVYGG6t3I2845Tl1Q== X-Received: by 2002:a6b:4f0f:0:b0:785:d5d4:9f1c with SMTP id d15-20020a6b4f0f000000b00785d5d49f1cmr17053132iob.18.1688559624474; Wed, 05 Jul 2023 05:20:24 -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 i11-20020a02ca4b000000b0042b1543bceasm3998459jal.21.2023.07.05.05.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 05:20:24 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH v2 08/60] buildman: Drop use of builder in show_actions() Date: Wed, 5 Jul 2023 13:18:36 +0100 Message-ID: <20230705121951.1629361-9-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog In-Reply-To: <20230705121951.1629361-1-sjg@chromium.org> References: <20230705121951.1629361-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 fd136e54baf9..7beb5bce6444 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] @@ -416,7 +416,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.255.g8b1d071c50-goog