linux/tools/docs
Mauro Carvalho Chehab 464257baf9 docs: makefile: move rustdoc check to the build wrapper
The makefile logic to detect if rust is enabled is not working
the way it was expected: instead of using the current setup
for CONFIG_RUST, it uses a cached version from a previous build.

The root cause is that the current logic inside docs/Makefile
uses a cached version of CONFIG_RUST, from the last time a non
documentation target was executed. That's perfectly fine for
Sphinx build, as it doesn't need to read or depend on any
CONFIG_*.

So, instead of relying at the cache, move the logic to the
wrapper script and let it check the current content of .config,
to verify if CONFIG_RUST was selected.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <c06b1834ef02099735c13ee1109fa2a2b9e47795.1763722971.git.mchehab+huawei@kernel.org>
2025-11-29 08:42:53 -07:00
..
check-variable-fonts.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
checktransupdate.py
documentation-file-ref-check
features-refresh.sh
find-unused-docs.sh
gen-redirects.py
gen-renames.py
get_abi.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
get_feat.py tools/docs/get_feat.py: convert get_feat.pl to Python 2025-11-21 10:32:30 -07:00
list-arch.sh
parse-headers.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
sphinx-build-wrapper docs: makefile: move rustdoc check to the build wrapper 2025-11-29 08:42:53 -07:00
sphinx-pre-install docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
test_doc_build.py