]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scripts: kconfig: merge_config.sh: pass output file as awk variable
authorDaniel Gomez <da.gomez@samsung.com>
Tue, 10 Mar 2026 11:36:23 +0000 (12:36 +0100)
committerNathan Chancellor <nathan@kernel.org>
Wed, 11 Mar 2026 07:37:50 +0000 (00:37 -0700)
commit5f47be1b44bf2754c45e8c58ca036b474c9ecbc7
tree753ebdc9b9870270ab5ee06ca04b7e1df9f7efc0
parent3b4a3a00de8770f3a60c1fa483921ce37415132d
scripts: kconfig: merge_config.sh: pass output file as awk variable

The refactoring commit 5fa9b82cbcfc5 ("scripts: kconfig:
merge_config.sh: refactor from shell/sed/grep to awk") passes
$TMP_FILE.new as ARGV[3] to awk, using it as both an output destination
and an input file argument. When the base file is empty, nothing is
written to ARGV[3] during processing, so awk fails trying to open it
for reading:

    awk: cmd. line:52: fatal: cannot open file
    `./.tmp.config.grcQin34jb.new' for reading: No such file or directory
    mv: cannot stat './.tmp.config.grcQin34jb.new': No such file or directory

Pass the output path via -v outfile instead and drop the FILENAME ==
ARGV[3] { nextfile }.

Fixes: 5fa9b82cbcfc5 ("scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk")
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Link: https://patch.msgid.link/20260310-fixes-merge-config-v1-1-beaeeaded6bd@samsung.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/kconfig/merge_config.sh