Re: [PATCH 0/4] tools/docs: sphinx-build-wrapper: avoid spurious rust docs generation

From: Mauro Carvalho Chehab

Date: Tue Jan 20 2026 - 17:43:22 EST


On Sun, 18 Jan 2026 00:26:20 +0100
Thomas Weißschuh <linux@xxxxxxxxxxxxxx> wrote:

> Currently the rust docs are generated for each entry of SPHINXDIRS,
> even those not mentioning the rust directory.
>
> Only generate the rust docs only once and only when requested.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> ---
> Thomas Weißschuh (4):
> tools/docs: sphinx-build-wrapper: generate rust docs only once
> tools/docs: sphinx-build-wrapper: make 'rustdoc' a local variable
> tools/docs: sphinx-build-wrapper: compute sphinxdirs_list earlier
> tools/docs: sphinx-build-wrapper: only generate rust docs when requested
>
> tools/docs/sphinx-build-wrapper | 80 +++++++++++++++++++++--------------------
> 1 file changed, 41 insertions(+), 39 deletions(-)

Patches in this series look ok. Code reviewed and I also did some
tests, and all LGTM.

So, for this series:

[mchehab: tested building with and without config RUST, doing
a full build and also passing --sphinxdirs rust peci and just
--sphinxdirs rust]

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
Tested-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>

Thanks,
Mauro