From patchwork Tue Nov 19 20:14:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1197625 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=konsulko.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47HcVx0ZHQz9sPK for ; Wed, 20 Nov 2019 07:14:48 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 78F3CC21E1E; Tue, 19 Nov 2019 20:14:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id AA38EC21CB1; Tue, 19 Nov 2019 20:14:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A1160C21CB1; Tue, 19 Nov 2019 20:14:40 +0000 (UTC) Received: from mail-yw1-f67.google.com (mail-yw1-f67.google.com [209.85.161.67]) by lists.denx.de (Postfix) with ESMTPS id 036A7C21C2C for ; Tue, 19 Nov 2019 20:14:40 +0000 (UTC) Received: by mail-yw1-f67.google.com with SMTP id j190so7777346ywf.8 for ; Tue, 19 Nov 2019 12:14:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=07tAs2PBa0V2Vyr9NWBWnYZiBDBQg4Hqt46rlN5PXp0=; b=ZpHYDfTS5tflnAh+limPfX24jkez0dbGa07sQB5zQigMEvcTDBu1WBFAxY25k09A4V vygBK7+jwOPDHopUQASQdPw9HDNrHnSpguRxEpok3FvjEX3NXjeH734Rmcma5CSMc8Io 0zmDkENM4ONMDokHVD9mp7RxOJMyv4Oaon6ezRv27PEiL0AAJZh2GNjaEVfVCi0Xx3Yc hqF0ZUqUmL4qyM5b2tvLWlGCfHdSFtnZL1ehsCtTuPWiKRmy/olrnfxn0HxOTiaXQ3P4 QrwBshKf6xrKVypfaeZ4gtqIEw4HwyFnllv3zpb0IM8djNANSIp/BGK6seA5PeSuIWSV EAZw== X-Gm-Message-State: APjAAAWXpnoArvhurkVH7wEbVWjB9IctxeSpiUflf/CFWE8WfLT2W57w fhaRxK6QVsYYHBU4/6yCGP9N18M= X-Google-Smtp-Source: APXvYqwL0StSrSIV1rvGoikICkz8BwARWp7lm1/gktn0RtUfyt+LWn7s7PcgsG0xd/mOS1u0Z33VBQ== X-Received: by 2002:a81:1881:: with SMTP id 123mr15267401ywy.287.1574194478165; Tue, 19 Nov 2019 12:14:38 -0800 (PST) Received: from bill-the-cat.local (cpe-65-184-142-8.ec.res.rr.com. [65.184.142.8]) by smtp.gmail.com with ESMTPSA id w66sm10230313ywb.62.2019.11.19.12.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 12:14:37 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Tue, 19 Nov 2019 15:14:33 -0500 Message-Id: <20191119201433.13565-1-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [U-Boot] [PATCHv2] buildman: Fix problem with non-existent output directories X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Now that we have buildman telling genboards.cfg to use an output directory we need to ensure that it exists. Cc: Bin Meng Cc: Simon Glass Fixes: bc750bca1246 ("tools: buildman: Honor output directory when generating boards.cfg") Signed-off-by: Tom Rini Reviewed-by: Bin Meng --- Changes in v2: - Use os.makedirs() per Bin --- tools/buildman/control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 216012d00168..c55a65d0c30b 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -201,6 +201,8 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None, # Work out what subset of the boards we are building if not boards: + if not os.path.exists(options.output_dir): + os.makedirs(options.output_dir) board_file = os.path.join(options.output_dir, 'boards.cfg') genboardscfg = os.path.join(options.git, 'tools/genboardscfg.py') status = subprocess.call([genboardscfg, '-o', board_file])