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 115A3C0015E for ; Wed, 19 Jul 2023 23:56:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C17686854; Thu, 20 Jul 2023 01:51:33 +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="if4eC/Y6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CD9D9867BF; Thu, 20 Jul 2023 01:50:32 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 E0704867CA for ; Thu, 20 Jul 2023 01:50:26 +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-xd2f.google.com with SMTP id ca18e2360f4ac-78372b895d6so8081639f.2 for ; Wed, 19 Jul 2023 16:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810625; x=1690415425; 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=iocd/8JIJm5JXLIK3iTZ2brgAxtds8X4MVV1m1jYmwk=; b=if4eC/Y6zJSbUEIjjJ2Iruos0LFoEIjRt4Fh4hXxmMEISy9FEP58GLYSyhSykQ3MLs K4cr82OiTZtUlYCnO1PRmPEM7sa2v8CQ0pkXN3e3cVDrItdHpaX+q3Xi+m6VP0K9HQ+1 8FoaApFvSxkjiSsAsXvK4UrVj8+3Su5kfG54M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810625; x=1690415425; 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=iocd/8JIJm5JXLIK3iTZ2brgAxtds8X4MVV1m1jYmwk=; b=NLdjuXtYJTOyoYf6+soeQNDOm7+LyLKKPJZKoJwusoTalpEbrfnjmod4RQcSgW/9yF Gc5yF6+In5deRnRz678U8etMuvq1UsVpC4G7Uh52quaLGPxFLiDGWV/QGUIQlHAVz4pF tnxnDbBC+DRYPLQzP9LNNzd69xrPmR6mvL+mx05jDRnWtA0iDatQ5jdkze3UMlLmsot7 LRQxDPDt6tHnWWrg8EL3G/1+vxtu8aPj1ThN/OfjDRxNLU97Ib+FFd7rMe3qJJB6M+Wa dsn4c5wS4HXQ2qEHhZ3E6Mu3N1fKcifQ9q6JKBp0q8j7+hHZj+sk9FZPiQlVE6MFVg56 L5Hw== X-Gm-Message-State: ABy/qLZ6jHV35D8Gt9rWUj5y+o/Xmc1WFipbErWW/HYIVzmZjR1c8TvZ L2Z5YlnUE4/pF8X87sujWusj4Fv2vQ16D2Ahg+4= X-Google-Smtp-Source: APBJJlHhTRCt9eHdOx0Ke+vBF6UcSR3P+rfA10/fvXLvB5l05EUbMkXLQax8lYco2tt7+fqVJDqTqw== X-Received: by 2002:a5d:8953:0:b0:783:60f7:ade9 with SMTP id b19-20020a5d8953000000b0078360f7ade9mr900939iot.5.1689810625471; Wed, 19 Jul 2023 16:50:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:25 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 35/83] bulldman: Set up output_dir earlier Date: Wed, 19 Jul 2023 17:48:43 -0600 Message-ID: <20230719234953.796101-36-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 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.487.g6d72f3e995-goog