From patchwork Thu May 19 06:51:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 68094 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3032926qge; Wed, 18 May 2016 23:53:34 -0700 (PDT) X-Received: by 10.194.186.237 with SMTP id fn13mr12102826wjc.47.1463640814495; Wed, 18 May 2016 23:53:34 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ck5si15800524wjb.78.2016.05.18.23.53.34; Wed, 18 May 2016 23:53:34 -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 963D6A7519; Thu, 19 May 2016 08:53:04 +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 SopH7lwUCpkS; Thu, 19 May 2016 08:53:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EDE25A7681; Thu, 19 May 2016 08:52:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF011A74DA for ; Thu, 19 May 2016 08:51:31 +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 VsJqRa1y6qpW for ; Thu, 19 May 2016 08:51:31 +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 2C30BA754E 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 u4J6p2Zf001067; Thu, 19 May 2016 15:51:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u4J6p2Zf001067 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1463640664; bh=9RB3QVzhQ1rGec0HzQwK3vU5W/8G/u9+e5Vd4fqK3P0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=osFV59vtweYPg21tqZa90u19ImsDbXYCAY44RAs8gJ9fQLGdZujXgE2PfOAUDPxw4 CL31FwTuKAW/IbSWntSWlThl3WvvKCs17PpYRXleQVzQGiaz18bF90ak5CZdwChJbQ vfD1VvzIt/5/mv0+TtsB09ukJgA7XBfAp4ZNWKlBWo5q9U8b0d5jBwxDzzM2E5+IhY snNdNemCXPjI7I+Z8Z0ufXuFcNMu2spdImcK8LyZDYuFMxaYO5jfiLBi/snaUVy+gj NPpYIq04uhvzwKOeGQbE9sQQ6LuCSQMA+7+S4C0dgd7Baq1Hx7rklXMO5FL908nD5I j0Mqbn13yGKiw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 May 2016 15:51:50 +0900 Message-Id: <1463640729-25666-3-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 02/21] tools: moveconfig: rename update_defconfig() to update_dotconfig() 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" Commit 96464badc794 ("moveconfig: Always run savedefconfig on the moved config") changed how defconfig files were updated. Since then, the function update_defconfig() does not modify defconfig files at all (instead, they are updated by "make savedefconfig"). The name update_dotconfig() is a better fit for this function. Also, update the comment block to match the actual behavior. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 fd98e41..9029287 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -459,13 +459,13 @@ class KconfigParser: return (action, value) - def update_defconfig(self, defconfig): - """Parse files for the config options and update the defconfig. + def update_dotconfig(self, defconfig): + """Parse files for the config options and update the .config. This function parses the given defconfig, the generated .config and include/autoconf.mk searching the target options. - Move the config option(s) to the defconfig or do nothing if unneeded. - Also, display the log to show what happened to this defconfig. + Move the config option(s) to the .config as needed. + Also, display the log to show what happened to the .config. Arguments: defconfig: defconfig name. @@ -632,7 +632,7 @@ class Slot: return True if self.state == STATE_AUTOCONF: - self.parser.update_defconfig(self.defconfig) + self.parser.update_dotconfig(self.defconfig) print ' %d defconfigs out of %d\r' % (self.num + 1, self.total), sys.stdout.flush()