]> 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:41:58 +0000 (14:41 +0200)
commit3edb08b6c21ef1bcbda4dbc2c7af265dc476ea3f
tree4eaab174472a63513d970619f3698b434dd332d9
parentbc8023ef3b11410682e5d4990e05e5bc2d3e1c94
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