Re: [PATCH v8] scripts/config: honor $KBUILD_OUTPUT by default

From: Julian Braha

Date: Wed Nov 18 2026 - 06:15:17 EST


On 11/18/26 08:10, Nathan Chancellor wrote:
> On Tue, Nov 17, 2026 at 07:25:17PM +0000, Julian Braha wrote:
>> On 11/17/26 13:25, Dmitry Voytik wrote:
>>> +# If no '--file' was specified, use KBUILD_OUTPUT as the base if it exists
>>> +if [[ "$FN" = ".config" && -n "$KBUILD_OUTPUT" ]]; then
>> Right so this will give different results with:
>> '--file .config'
>> and:
>> '--file ./.config'
>>
>> but maybe that was intentional -- i.e. we're assuming a user passing
>> '.config' intends it to be '$KBUILD_OUTPUT/.config' while a user passing
>> './.config' would intend CWD/.config?
> It was intentional since I had figured they were passing the default
> value so they should get the default behavior. Maybe it would be better
> to only do this when no '--file' value was provided period though to
> avoid some unexpected behavior?

All good, I think it's reasonable. Just wanted to confirm the intention

- Julian Braha

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature