From patchwork Thu May 19 06:51:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 68084 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3032216qge; Wed, 18 May 2016 23:51:44 -0700 (PDT) X-Received: by 10.28.44.87 with SMTP id s84mr11373078wms.61.1463640704555; Wed, 18 May 2016 23:51:44 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id o203si38619115wmd.121.2016.05.18.23.51.44; Wed, 18 May 2016 23:51:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B16B3A7531; Thu, 19 May 2016 08:51:41 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QWK6Lf3urBYw; Thu, 19 May 2016 08:51:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8804EA74F1; Thu, 19 May 2016 08:51:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 50CD9A7519 for ; Thu, 19 May 2016 08:51:30 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9xvhpKybZ7Jx for ; Thu, 19 May 2016 08:51:30 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by theia.denx.de (Postfix) with ESMTPS id 95D74A7498 for ; Thu, 19 May 2016 08:51:26 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id u4J6p2Zh001067; Thu, 19 May 2016 15:51:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u4J6p2Zh001067 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1463640666; bh=74xDzkgHkxSwkdUiaDUe1u2KgjrWFJdPdA+XqYB8feI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0vgz61LOxECjKwj2h3WylnjiJ84EekY1TEx25QlNiM7DvnL2qstBK9doRAUek6/Kw +/WR6/4TINEiYhcfjCYGimP0id8laGWAMDck8a8pzdd9eKNhYD8V5tkuN+7zQCCLOT HQjNvCwBj42dOLVP6AXx4LmNM5+V4EQfGuKmYPoJZeS88BdhzMtrmPHH4UCvd5JQbz 8gzufUAiWQ57nS6PT2pIXGp+HFgwKUJ2Dqi5C984LItSmP9WXVpWn/IhA7ZJTT567d Kk6tikfBvJxSF+/wyw2E/WXP5eKVy7ZzBTaNnVJ5REPLtGcV2NDRaS0nyJ43y5GYBY oLuudZmXXKNwA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 May 2016 15:51:52 +0900 Message-Id: <1463640729-25666-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463640729-25666-1-git-send-email-yamada.masahiro@socionext.com> References: <1463640729-25666-1-git-send-email-yamada.masahiro@socionext.com> Cc: Joe Hershberger Subject: [U-Boot] [PATCH 04/21] tools: moveconfig: check directory relocation before compilers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" We must make sure this tool is run from the top of source directory before calling update_cross_compile(). Otherwise, the following exception is thrown: Traceback (most recent call last): File "./moveconfig.py", line 918, in main() File "./moveconfig.py", line 908, in main update_cross_compile() File "./moveconfig.py", line 292, in update_cross_compile for arch in os.listdir('arch'): OSError: [Errno 2] No such file or directory: 'arch' Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 1332bd2..ce8245a 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -905,10 +905,10 @@ def main(): config_attrs = parse_recipe(args[0]) - update_cross_compile() - check_top_directory() + update_cross_compile() + if not options.cleanup_headers_only: move_config(config_attrs, options)