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 35528C0015E for ; Sun, 16 Jul 2023 00:42:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 317B8861F7; Sun, 16 Jul 2023 02:39:03 +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="Oziubgto"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D261A863EC; Sun, 16 Jul 2023 02:37:56 +0200 (CEST) Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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 2238F8631F for ; Sun, 16 Jul 2023 02:37:48 +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-x132.google.com with SMTP id e9e14a558f8ab-3458a08310aso16622815ab.3 for ; Sat, 15 Jul 2023 17:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467866; x=1692059866; 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=DjKyHyl1LMMACsWqHbGOru0+6d1fndkEL2FGi5c3txE=; b=OziubgtouOEob3LR9SNTTfdY+Vu7rrFe2xPPZ5+z2h4pDNCVJBBNSidoa5/I0TRNao HCf913OpY1zLlnhK6ZLfgD6d4OjUuzXHcotFj4WULo288kevmFmNVQVZ/9MhyMOGBnP3 77U9vQ7L5aLMxdpSg0zrsYvdKiwIetkgLMris= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467866; x=1692059866; 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=DjKyHyl1LMMACsWqHbGOru0+6d1fndkEL2FGi5c3txE=; b=Ibp9FNu32VOOy0VsUMjyQQyoUAQ/wQbO5NQmJ9hEqNpKYY5qbqijZvc6b37162icKy 0G8Bo3TyGbD7esCDsqRKwCZisSBr2sS2Rut1dCCQpMn7mJBlK6dlWhrnJnLAXsB1Y7Aa ZGE4pMGXFY4TouSMuS2SofhhHgyPeZlgg35ger85hIcufHdPKdyiWM/oGKZ9NrsfjnRe e14Km6OWwq7lnF1vDL3DCRlBUbGrPXSkvrvEkZP28H7n7+uqNEklcNWcI//Pkl7X4/bW K2eaxXuH4ki6EVI+O+wOs3nlsSej0Y46gzcu/JWiRFcvu70N0/lQwSQjIR3xK8acumVJ PIxA== X-Gm-Message-State: ABy/qLZzGSghDUqXc2+zdIaK2lYryFbElaAdk2DrMWLZSilNQpy9U+Cw EaF27RcDGKm64WFKCZ8rgnYI2BH1uMIJJpls3kA= X-Google-Smtp-Source: APBJJlHQcV3KxuiL5QkDrqc8D9mOYtjvWKzTyxMcOGOfOhSgyqnkCaWCGefxu/etFOMTwG1N1C3e4w== X-Received: by 2002:a05:6e02:1b0c:b0:348:7d72:6371 with SMTP id i12-20020a056e021b0c00b003487d726371mr2253064ilv.2.1689467866620; Sat, 15 Jul 2023 17:37:46 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:46 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 33/81] bulldman: Set up output_dir earlier Date: Sat, 15 Jul 2023 18:36:01 -0600 Message-ID: <20230716003718.231903-34-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 Set up output_dir at the start of the main function, instead of updating the options.output_dir option. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 2bc235e130a2..b6cd9787fbbd 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -410,14 +410,15 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, toolchains = get_toolchains(toolchains, col, options.override_toolchain, options.fetch_arch, options.list_tool_chains, options.verbose) - if not options.output_dir: + output_dir = options.output_dir + if not output_dir: if options.work_in_output: sys.exit(col.build(col.RED, '-w requires that you specify -o')) - options.output_dir = '..' + output_dir = '..' # Work out what subset of the boards we are building if not brds: - brds = get_boards_obj(options.output_dir, options.regen_board_list, + brds = get_boards_obj(output_dir, options.regen_board_list, options.maintainer_check, options.threads, options.verbose) if isinstance(brds, int): @@ -460,13 +461,12 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, options.branch) # Create a new builder with the selected options. - output_dir = options.output_dir if options.branch: dirname = options.branch.replace('/', '_') # As a special case allow the board directory to be placed in the # output directory itself rather than any subdirectory. if not options.no_subdirs: - output_dir = os.path.join(options.output_dir, dirname) + output_dir = os.path.join(output_dir, dirname) if clean_dir and os.path.exists(output_dir): shutil.rmtree(output_dir) -- 2.41.0.455.g037347b96a-goog