Commit 49a99cce authored by Seyediman Seyedarab's avatar Seyediman Seyedarab Committed by Greg Kroah-Hartman
Browse files

kbuild: fix argument parsing in scripts/config



[ Upstream commit f757f601 ]

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: default avatarSeyediman Seyedarab <imandevel@gmail.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ac8fbc31
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment