Re: [PATCH v3 1/3] scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk
From: Nathan Chancellor
Date: Thu Jan 29 2026 - 19:10:51 EST
On Thu, 22 Jan 2026 12:57:49 +0200, Mikko Rapeli wrote:
> merge_config.sh shell/sed/grep loop scales poorly and is slow.
> With Yocto genericarm64 kernel and around 190 config fragments
> the script takes more than 20 minutes to run on a fast build machine.
> Re-implementation with awk does the same job in 10 seconds.
> Using awk since it is likely available in the build environments
> and using perl, python etc would introduce more complex runtime
> dependencies. awk is good enough and lot better than shell/sed/grep.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next
Thanks!
[1/3] scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk
(no commit info)
[2/3] scripts: kconfig: merge_config.sh: use awk in checks too
(no commit info)
[3/3] scripts: kconfig: merge_config.sh: warn on duplicate input files
(no commit info)
Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.
Best regards,
--
Nathan Chancellor <nathan@xxxxxxxxxx>