Re: [PATCH bpf-next v1] scripts/gen-btf.sh: Use CONFIG_SHELL for execution

From: Ihor Solodrai

Date: Wed Jan 21 2026 - 13:30:50 EST


On 1/21/26 10:24 AM, Gary Guo wrote:
> On Wed Jan 21, 2026 at 6:16 PM GMT, Ihor Solodrai wrote:
>> According to the docs [1], kernel build scripts should be executed via
>> CONFIG_SHELL, which is sh by default.
>>
>> Fixup gen-btf.sh to be runnable with sh, and use CONFIG_SHELL at every
>> invocation site.
>>
>> See relevant discussion for context [2].
>>
>> [1] https://docs.kernel.org/kbuild/makefiles.html#script-invocation
>> [2] https://lore.kernel.org/bpf/CAADnVQ+dxmSNoJAGb6xV89ffUCKXe5CJXovXZt22nv5iYFV5mw@xxxxxxxxxxxxxx/
>>
>> Signed-off-by: Ihor Solodrai <ihor.solodrai@xxxxxxxxx>
>
> I can indeed build again when applying this on top of linux-next. Thanks.
>
> Tested-by: Gary Guo <gary@xxxxxxxxxxx>
>
> You probably also want to carry some Reported-by, Suggested-by and Fixes tags here.

You're right. This should do it:

Reported-by: Gary Guo <gary@xxxxxxxxxxx>
Suggested-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Fixes: 522397d05e7d ("resolve_btfids: Change in-place update with raw binary output")

Alexei, please lmk if I should re-send with tags.

>
>
>> [...]