Re: [PATCH] kbuild: unset sub_make_done before calling kselftest build system
From: Petr Mladek
Date: Tue Jul 07 2026 - 08:11:21 EST
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 <zelin.deng@xxxxxxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/all/20260525083721.27857-1-zelin.deng@xxxxxxxxxxxxxxxxx/
> Fixes: c9bb03ac2c66 ("kbuild: reduce output spam when building out of tree")
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
JFYI, the patch has been committed into livepatching.git,
branch for-7.3/trivial.
The problem does not look serious enough to deserve rushing into
an 7.2-rcX. Also it is touching the global Makefile so it should
spent some time in linux-next. Let me know if you would prefer
to get it faster into the mainline.
Best Regards,
Petr