Re: [PATCH] kbuild: unset sub_make_done before calling kselftest build system
Petr Mladek <[email protected]> Fri, 3 Jul 2026 10:25:15 +0200
| Newsgroups | org.kernel.vger.live-patching,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest |
|---|---|
| Message-ID | <[email protected]> |
On Fri 2026-07-03 08:04:08, Thomas WeiÃschuh wrote:
> The kselftest build system may recourse back into kbuild when building
> test modules. In that case kbuild needs to parse the new flags passed
> from the command line, instead of using the ones inherited from the
> kbuild invocation.
>
> Force that command line reevaluation.
>
> The same was done for scripts/install.sh in commit 14ccc638b02f9ec
> ("kbuild: cancel sub_make_done for the install target to fix DKMS")
>
> Reported-by: Zelin Deng <[email protected]>
> Closes: https://lore.kernel.org/all/[email protected]/
It is great that you added references to the related commit and
the original thread.
> Fixes: c9bb03ac2c66 ("kbuild: reduce output spam when building out of tree")
> Signed-off-by: Thomas WeiÃschuh <[email protected]>
I believe that this is reasonable solution:
Acked-by: Petr Mladek <[email protected]>
Zelin, could you please provide your Tested-by, please?
Best Regards,
Petr
PS: I could take this via livepatching tree. But feel free to take it
via kbuild tree. I am going to wait few days until the discussion
settles down.