diff mbox

[02/21] tools: moveconfig: rename update_defconfig() to update_dotconfig()

Message ID 1463640729-25666-3-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 6ff36d21746d61d7a2af08ea0bd973059d91d306
Headers show

Commit Message

Masahiro Yamada May 19, 2016, 6:51 a.m. UTC
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 <yamada.masahiro@socionext.com>

---

 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 mbox

Patch

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()