* [PATCH] scripts: kconfig: merge_config.sh: create tmp file for awk
@ 2026-03-10 10:51 Mikko Rapeli
2026-03-11 7:48 ` Nathan Chancellor
0 siblings, 1 reply; 2+ messages in thread
From: Mikko Rapeli @ 2026-03-10 10:51 UTC (permalink / raw)
To: Nathan Chancellor, Nicolas Schier, Daniel Gomez, Anders Roxell,
Masahiro Yamada
Cc: linux-kbuild, linux-kernel, Andreas Larsson, Mikko Rapeli
From: Nathan Chancellor <nathan@kernel.org>
For some reason some awk versions/configurations fail to create
this output file. Create it in the shell script part before
providing it to awk.
Reported-by: Andreas Larsson <andreas@gaisler.com>
Closes: https://lore.kernel.org/linux-kbuild/acb36651-449a-43e4-afe2-ba42a435cbb0@gaisler.com/
Fixes: 5fa9b82cbcfc ("scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk")
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
scripts/kconfig/merge_config.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh
index 735e1de450c6..070ecae87a1c 100755
--- a/scripts/kconfig/merge_config.sh
+++ b/scripts/kconfig/merge_config.sh
@@ -123,6 +123,7 @@ fi
MERGE_LIST=$*
TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX)
+touch "$TMP_FILE.new"
echo "Using $INITFILE as base"
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts: kconfig: merge_config.sh: create tmp file for awk
2026-03-10 10:51 [PATCH] scripts: kconfig: merge_config.sh: create tmp file for awk Mikko Rapeli
@ 2026-03-11 7:48 ` Nathan Chancellor
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2026-03-11 7:48 UTC (permalink / raw)
To: Mikko Rapeli
Cc: Nicolas Schier, Daniel Gomez, Anders Roxell, Masahiro Yamada,
linux-kbuild, linux-kernel, Andreas Larsson
On Tue, Mar 10, 2026 at 12:51:14PM +0200, Mikko Rapeli wrote:
> From: Nathan Chancellor <nathan@kernel.org>
>
> For some reason some awk versions/configurations fail to create
> this output file. Create it in the shell script part before
> providing it to awk.
>
> Reported-by: Andreas Larsson <andreas@gaisler.com>
> Closes: https://lore.kernel.org/linux-kbuild/acb36651-449a-43e4-afe2-ba42a435cbb0@gaisler.com/
> Fixes: 5fa9b82cbcfc ("scripts: kconfig: merge_config.sh: refactor from shell/sed/grep to awk")
> Tested-by: Andreas Larsson <andreas@gaisler.com>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Even though it is a bigger patch, I think I prefer Daniel's submitted
fix for this issue:
https://lore.kernel.org/20260310-fixes-merge-config-v1-1-beaeeaded6bd@samsung.com/
> ---
> scripts/kconfig/merge_config.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh
> index 735e1de450c6..070ecae87a1c 100755
> --- a/scripts/kconfig/merge_config.sh
> +++ b/scripts/kconfig/merge_config.sh
> @@ -123,6 +123,7 @@ fi
> MERGE_LIST=$*
>
> TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX)
> +touch "$TMP_FILE.new"
>
> echo "Using $INITFILE as base"
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-11 7:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 10:51 [PATCH] scripts: kconfig: merge_config.sh: create tmp file for awk Mikko Rapeli
2026-03-11 7:48 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox