On Fri, 13 Feb 2026 19:47:34 -0700, Simon Glass wrote:
> The exported sub_make_done variable leaks into the environment of all
> child processes. When make targets like tcheck spawn independent make
> invocations with O=, those child makes inherit sub_make_done=1, skip
> the KBUILD_OUTPUT setup and try to build in the source tree.
>
> There is a workaround that resets sub_make_done to 0 for specific test
> targets, but this isn't great since it has tolist every target that
> spawns independent make invocations.
>
> [...]
Applied to u-boot/master, thanks!
[1/1] kbuild: unexport sub_make_done to fix child make invocations
commit: 4284306d22c5b6d64ecd62b462551d9d313c8104
--
Tom