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 8B95AC001DC for ; Wed, 19 Jul 2023 23:58:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46A6586897; Thu, 20 Jul 2023 01:52:34 +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="YChmUi2a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A4C9486795; Thu, 20 Jul 2023 01:50:39 +0200 (CEST) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 40B4C867D8 for ; Thu, 20 Jul 2023 01:50:34 +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-xd2d.google.com with SMTP id ca18e2360f4ac-78360f61ba0so9263439f.1 for ; Wed, 19 Jul 2023 16:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810633; x=1690415433; 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=COkYPAn4j5IRUI00g3rF4wm0wcyUT3zDaGaRpDATpT8=; b=YChmUi2aEWo2kc3AsTcieYyehL4QzbtZ2OGhiN6c7hHomU0zKSQbWmKlst+6A+3sEi 2zR9QR4DO5k0gxX1dXfnBAgCCtR7mhnnHMDXqwRH+jFN987M4XJObeTeWd3kpSZJrbH7 UtIqT8rQkMtNeB1HGbvM9dAabea8btb3G66N8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810633; x=1690415433; 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=COkYPAn4j5IRUI00g3rF4wm0wcyUT3zDaGaRpDATpT8=; b=PgQXOhAhnCpmYdPnM9GdN/QrxtZV2ImCJ8gR97Ji2LjPp0IbY5EwTrLsoxYrjbvwc6 3vgVSDhlynOdFsyvHtYAt+OUPRxxQ6CNaKjSEKempC6ABFtTJNrUh+yapw3YHJLur3FB flm/tCcpnCrwc3pgSSYeBiWvfFRHWswa2XqiqwuRLR1s3OpBsmXGXGvuf8r3kLL8azFb quA8FlEmj0B3/SzByMK14de8W8RX0o8j1PxnjHxT4VaGFGfh2IF/LR2CPlcFjLI8LQ5N TBYaoGnQOCoSMC9Z2BrqU9pirj8kSLC3eC0rBGkSqKr7S1gb2AOp9MRt9QYrlrBDma+0 /SLQ== X-Gm-Message-State: ABy/qLaDIODE2/SPW7Xe7RLYzBoWwuNT0tG5rh+x2qlhwM8mR62Z2bfi pA0rZaxqw2i29Pf1z4Ho8fZZR2cH1A/+87JDhi0= X-Google-Smtp-Source: APBJJlEXYxJfCVoLeoj5qqFjc2ScghdAvydZC9qtMjgoeSivUdTk77riEvi16Rz7hV6F/LibHw4WwQ== X-Received: by 2002:a5e:8607:0:b0:77a:e86a:c24b with SMTP id z7-20020a5e8607000000b0077ae86ac24bmr6563721ioj.6.1689810632890; Wed, 19 Jul 2023 16:50:32 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:32 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 45/83] buildman: Tweak commits and show_bloat Date: Wed, 19 Jul 2023 17:48:53 -0600 Message-ID: <20230719234953.796101-46-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 Move setting of show_bloat to adjust_options() and adjust how the commits variable is set. Together these remove the pylint warning about too many statements. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index ece54ccb09da..b0cc7078c4ff 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -441,6 +441,10 @@ def adjust_options(options, series, selected): if not options.step: options.step = len(series.commits) - 1 + # We can't show function sizes without board details at present + if options.show_bloat: + options.show_detail = True + def setup_output_dir(output_dir, work_in_output, branch, no_subdirs, col, clean_dir): @@ -581,18 +585,11 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, # Work out which boards to build board_selected = brds.get_selected_dict() - if series: - commits = series.commits - else: - commits = None - + commits = series.commits if series else None if not options.ide: tprint(get_action_summary(options.summary, commits, board_selected, options.step, options.threads, options.jobs)) - # We can't show function sizes without board details at present - if options.show_bloat: - options.show_detail = True builder.SetDisplayOptions( options.show_errors, options.show_sizes, options.show_detail, options.show_bloat, options.list_error_boards, options.show_config, -- 2.41.0.487.g6d72f3e995-goog