Commit 464257b
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>1 parent b9a565b commit 464257b
2 files changed
Lines changed: 32 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
122 | 145 | | |
123 | 146 | | |
124 | 147 | | |
| |||
236 | 259 | | |
237 | 260 | | |
238 | 261 | | |
| 262 | + | |
| 263 | + | |
239 | 264 | | |
240 | 265 | | |
241 | 266 | | |
| |||
306 | 331 | | |
307 | 332 | | |
308 | 333 | | |
309 | | - | |
| 334 | + | |
310 | 335 | | |
311 | 336 | | |
312 | 337 | | |
| |||
327 | 352 | | |
328 | 353 | | |
329 | 354 | | |
330 | | - | |
| 355 | + | |
| 356 | + | |
331 | 357 | | |
332 | 358 | | |
333 | 359 | | |
| |||
622 | 648 | | |
623 | 649 | | |
624 | 650 | | |
625 | | - | |
| 651 | + | |
626 | 652 | | |
627 | 653 | | |
628 | 654 | | |
| |||
671 | 697 | | |
672 | 698 | | |
673 | 699 | | |
674 | | - | |
| 700 | + | |
675 | 701 | | |
676 | 702 | | |
677 | 703 | | |
| |||
749 | 775 | | |
750 | 776 | | |
751 | 777 | | |
752 | | - | |
| 778 | + | |
753 | 779 | | |
754 | 780 | | |
755 | 781 | | |
| |||
804 | 830 | | |
805 | 831 | | |
806 | 832 | | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | 833 | | |
811 | 834 | | |
812 | 835 | | |
| |||
834 | 857 | | |
835 | 858 | | |
836 | 859 | | |
837 | | - | |
| 860 | + | |
838 | 861 | | |
839 | 862 | | |
840 | 863 | | |
| |||
0 commit comments