]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Drop dead code to handle :CONFIG_ construct
authorSimon Glass <sjg@chromium.org>
Wed, 19 Jul 2023 23:48:13 +0000 (17:48 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 24 Jul 2023 15:34:10 +0000 (09:34 -0600)
This is not needed anymore, so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 252ed872 ("kconfig: remove meaningless prefixes in defconfig files")
tools/buildman/boards.py

index 0bb0723b18eb37dc96e5e8c4b31dd9866cd962a0..cdb380f7db1b52dac0e9979e59898f26ea9a27c6 100644 (file)
@@ -229,19 +229,7 @@ class KconfigScanner:
                 'config': <config_header_name>,
             }
         """
-        # strip special prefixes and save it in a temporary file
-        outfd, self._tmpfile = tempfile.mkstemp()
-        with os.fdopen(outfd, 'w') as outf:
-            with open(defconfig, encoding='utf-8') as inf:
-                for line in inf:
-                    colon = line.find(':CONFIG_')
-                    if colon == -1:
-                        outf.write(line)
-                    else:
-                        outf.write(line[colon + 1:])
-
-        self._conf.load_config(self._tmpfile)
-        try_remove(self._tmpfile)
+        self._conf.load_config(defconfig)
         self._tmpfile = None
 
         params = {}