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 53AFAC001DF for ; Sun, 16 Jul 2023 00:45:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9AB5866AF; Sun, 16 Jul 2023 02:39:54 +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="M6906dcB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 30D7E846EE; Sun, 16 Jul 2023 02:38:14 +0200 (CEST) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 D8C83865DF for ; Sun, 16 Jul 2023 02:37:57 +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-xd31.google.com with SMTP id ca18e2360f4ac-78358268d1bso152860239f.3 for ; Sat, 15 Jul 2023 17:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467876; x=1692059876; 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=xlmHBqU0EwVhdYuZxcyFiZLVG+/BsAGXOZIsbjfpszg=; b=M6906dcBe5y+E421QkDDVhA7AabH9op+NYmpIYiwSimXs2SXhh2QfWs3+VmgIF4PpK kzPfHwBH6uyJsWw6tCp+y8pIWemYb8ucDPwRQ44pfwOAF0iRY5kpCTGhm+5ODAN+Rt2S qZxTnR5R7WDvqugmcw+K3bteJr8zSapidKM0M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467876; x=1692059876; 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=xlmHBqU0EwVhdYuZxcyFiZLVG+/BsAGXOZIsbjfpszg=; b=C304PlyM/8pAltZ0TotSH419fWVxjPzoWT5s4KC3MHFM11ejKpguHD8+rqSiecJAoE DVKHdRHObtPsSHd3KdkINP9GaSFOYirK/cHc7DoY1H3De5u8UkFrwnJj2B729lIb7hpp YsfO1BjQH1CPA0TWVT0lfFVra9zmTjrktcpMeRwQJN1W4RO6FaXlaSoHvNmsFBE8UK5D fu00nKha559tOL0NNtMqLoXzNHCKH2morY0Y8F2ybe7iL6CzgbuYjK3BIqx3XXG5Ad6X klSTIUWVOsx1jOT8XMIQomw7bWVS7huGvVA+rha0Bj4LCIQrojexmvl7gPMRX8CgB+0Q MPqw== X-Gm-Message-State: ABy/qLaIIDf7YWeJKPPH8iA/7NNuotD/0tF5G2YM/bTBYLFbIlSaYUfA MHcmUl3tQ1/7wpsp1iHZniZmAemz1r0+m/Dem4w= X-Google-Smtp-Source: APBJJlGi1rQ2mW+sNzMfLWxkEYUNLXMUR/ul5UWSrowJcAj1rqDMHqDOnzibwtSZCZCCnayB0SQYhA== X-Received: by 2002:a92:c9c4:0:b0:345:aee1:eae4 with SMTP id k4-20020a92c9c4000000b00345aee1eae4mr7282105ilq.29.1689467876539; Sat, 15 Jul 2023 17:37:56 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 47/81] buildman: Move checking for make into run_builder() Date: Sat, 15 Jul 2023 18:36:15 -0600 Message-ID: <20230716003718.231903-48-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 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.455.g037347b96a-goog