]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: fix argument parsing in scripts/config
authorSeyediman Seyedarab <imandevel@gmail.com>
Sat, 1 Mar 2025 22:21:37 +0000 (17:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:37:57 +0000 (14:37 +0200)
commit49a99ccec1c8442295767c96cf38127cf790bd4e
tree2e637cfdfee2d7530ca481c4177ada75d189f654
parentac8fbc318cec6a4929e42062d01f8169ec9643b5
kbuild: fix argument parsing in scripts/config

[ Upstream commit f757f6011c92b5a01db742c39149bed9e526478f ]

The script previously assumed --file was always the first argument,
which caused issues when it appeared later. This patch updates the
parsing logic to scan all arguments to find --file, sets the config
file correctly, and resets the argument list with the remaining
commands.

It also fixes --refresh to respect --file by passing KCONFIG_CONFIG=$FN
to make oldconfig.

Signed-off-by: Seyediman Seyedarab <imandevel@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/config