[PATCH 01/28] moveconfig: Drop -C option

Simon Glass sjg at chromium.org
Thu Aug 10 18:31:33 CEST 2023


Drop this option, which is no longer needed now that we have converted
all CONFIG options to Kconfig.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/moveconfig.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 6cbecc3d5c8..83c53911284 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -1940,8 +1940,6 @@ doc/develop/moveconfig.rst for documentation.'''
                       help='build a CONFIG database')
     parser.add_argument('-c', '--color', action='store_true', default=False,
                       help='display the log in color')
-    parser.add_argument('-C', '--commit', action='store_true', default=False,
-                      help='Create a git commit for the operation')
     parser.add_argument('-d', '--defconfigs', type=str,
                       help='a file containing a list of defconfigs to move, '
                       "one per line (for example 'snow_defconfig') "
@@ -2048,18 +2046,6 @@ doc/develop/moveconfig.rst for documentation.'''
         cleanup_headers(configs, args)
         cleanup_readme(configs, args)
 
-    if args.commit:
-        subprocess.call(['git', 'add', '-u'])
-        if configs:
-            msg = 'Convert %s %sto Kconfig' % (configs[0],
-                    'et al ' if len(configs) > 1 else '')
-            msg += ('\n\nThis converts the following to Kconfig:\n   %s\n' %
-                    '\n   '.join(configs))
-        else:
-            msg = 'configs: Resync with savedefconfig'
-            msg += '\n\nRsync all defconfig files using moveconfig.py'
-        subprocess.call(['git', 'commit', '-s', '-m', msg])
-
     if args.build_db:
         with open(CONFIG_DATABASE, 'w', encoding='utf-8') as fd:
             for defconfig, configs in config_db.items():
-- 
2.41.0.640.ga95def55d0-goog



More information about the U-Boot mailing list