]> 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:40:06 +0000 (14:40 +0200)
commitdf5a4416c04a94cdda79b40509fdb201dcfdf533
tree98a0c49932ee80e877eb0d4d6f962f4449595180
parente78a34da61ab3d8ac0733aad2e083f0b2e5da45d
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