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 48D7DC0015E for ; Wed, 19 Jul 2023 23:59:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BEA7B868AF; Thu, 20 Jul 2023 01:52: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="K13B9rdK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1981A867F4; Thu, 20 Jul 2023 01:50:43 +0200 (CEST) Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (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 2DB2C867E2 for ; Thu, 20 Jul 2023 01:50:37 +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-il1-x12c.google.com with SMTP id e9e14a558f8ab-345d6dc271dso1636575ab.0 for ; Wed, 19 Jul 2023 16:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810636; x=1690415436; 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=fuZgXPpWkKjdirW+QkvBEoZUC1URKguUxS6KmyW4udQ=; b=K13B9rdKrSXeVbi+DVyfsdkyOCIY4k11STdhe2lZjiaT0lk0k5Ep89IiDcoJCToE0E XJwEMVYYxLlg5rLwt9gh8fwLv4YaiXWhXjGZxIf2uq89/e+WzkM0Hf7z+iIG1JVIw3DB SB5Tt13DgttAIMB7WjdWfXnlBcfnwHRtS+C50= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810636; x=1690415436; 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=fuZgXPpWkKjdirW+QkvBEoZUC1URKguUxS6KmyW4udQ=; b=OUKTdQcWQXOHB5vprwGJQrZkAQDx5m00gL8GNqwYVi5Unbh/3imDNK9ar2Pftl+odN G7rW+2AHqui404rPjWq3FPtB31xQiWXnoiNdlNUmZQumpkUOwWj8gJ2O2mH4/g63ggfs EuDmq4IYUCFDah0MTeBvyYQQEarjuHLGej6OuFRH4OWlfIQtHEG2ThHdlRK0aLFqHTzY S28x7ASvgRlwzzZ76GLYQ/jzwGHg50jiD4b1rj/JS5gjbPErBfTAM/qwcavlSRL1HCeS XOOq13dWxZXflTrErU9nr1JMpz+BAzyvM87JYvjuPdjcIviWv+HaM3qqFJCYhJMsgCHG XfOw== X-Gm-Message-State: ABy/qLYwDCEmNDKiAtsfsYwhKd8MNPe0jsQr7p3ZXiL6Ci8A8M7wR55b edqNZlh3ZHt9WRjaGOXylWP8JY54EyZWsonl7Gw= X-Google-Smtp-Source: APBJJlEsS4ckU48mrqn750nuwyXD/PkAziBBUa5KqMWI33fg3Dge4n9r/r/Sa7MYhbeprPcE/Qw9jw== X-Received: by 2002:a92:cda7:0:b0:348:7d72:f474 with SMTP id g7-20020a92cda7000000b003487d72f474mr7654750ild.13.1689810635798; Wed, 19 Jul 2023 16:50:35 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:35 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 49/83] buildman: Move checking for make into run_builder() Date: Wed, 19 Jul 2023 17:48:57 -0600 Message-ID: <20230719234953.796101-50-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 is not needed until the builder is run. Move it there to reduce the size of the do_buildman() function. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 5327929444b2..1317cc718484 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -473,6 +473,7 @@ def setup_output_dir(output_dir, work_in_output, branch, no_subdirs, col, shutil.rmtree(output_dir) return output_dir + def run_builder(builder, commits, board_selected, options): """Run the builder or show the summary @@ -486,6 +487,12 @@ def run_builder(builder, commits, board_selected, options): Returns: int: Return code for buildman """ + gnu_make = command.output(os.path.join(options.git, + 'scripts/show-gnu-make'), raise_on_error=False).rstrip() + if not gnu_make: + sys.exit('GNU Make not found') + builder.gnu_make = gnu_make + if not options.ide: tprint(get_action_summary(options.summary, commits, board_selected, options.step, options.threads, options.jobs)) @@ -571,11 +578,6 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, options.verbose) return 0 - gnu_make = command.output(os.path.join(options.git, - 'scripts/show-gnu-make'), raise_on_error=False).rstrip() - if not gnu_make: - sys.exit('GNU Make not found') - allow_missing = get_allow_missing(options.allow_missing, options.no_allow_missing, len(selected), options.branch) @@ -592,7 +594,7 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, # Create a new builder with the selected options builder = Builder(toolchains, output_dir, git_dir, - options.threads, options.jobs, gnu_make=gnu_make, checkout=True, + options.threads, options.jobs, checkout=True, show_unknown=options.show_unknown, step=options.step, no_subdirs=options.no_subdirs, full_path=options.full_path, verbose_build=options.verbose_build, -- 2.41.0.487.g6d72f3e995-goog