[PATCH v3 05/81] buildman: Drop dead code to handle :CONFIG_ construct
Simon Glass
sjg at chromium.org
Sun Jul 16 02:35:33 CEST 2023
This is not needed anymore, so drop it.
Signed-off-by: Simon Glass <sjg at chromium.org>
Fixes: 252ed872 ("kconfig: remove meaningless prefixes in defconfig files")
---
Changes in v3:
- Add new patch to drop dead code to handle :CONFIG_ construct
tools/buildman/boards.py | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py
index 0bb0723b18eb..cdb380f7db1b 100644
--- a/tools/buildman/boards.py
+++ b/tools/buildman/boards.py
@@ -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 = {}
--
2.41.0.455.g037347b96a-goog
More information about the U-Boot
mailing list