]> www.infradead.org Git - users/willy/pagecache.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)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:22:42 +0000 (21:22 +0900)
commitf757f6011c92b5a01db742c39149bed9e526478f
tree23a4a970b49c6414809850626b68b112876b5f60
parent82c09de2d4c472ab1b973e6e033671020691e637
kbuild: fix argument parsing in scripts/config

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>
scripts/config