diff mbox series

[01/11] doc: Build documentation in parallel

Message ID 20220811140412.1671844-2-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show
Series binman: Enhancements to binman mkimage | expand

Commit Message

Simon Glass Aug. 11, 2022, 2:04 p.m. UTC
With the addition of the revision stats this now takes over a minute. Use
a parallel build to reduce it a bit (24 seconds for me).

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 doc/Makefile | 1 +
 1 file changed, 1 insertion(+)

Comments

Quentin Schulz Aug. 11, 2022, 2:17 p.m. UTC | #1
Hi Simon,

On 8/11/22 16:04, Simon Glass wrote:
> With the addition of the revision stats this now takes over a minute. Use
> a parallel build to reduce it a bit (24 seconds for me).
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>   doc/Makefile | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/doc/Makefile b/doc/Makefile
> index 050d9dd2391..008a516cb64 100644
> --- a/doc/Makefile
> +++ b/doc/Makefile
> @@ -57,6 +57,7 @@ quiet_cmd_sphinx = SPHINX  $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
>   	BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \
>   	$(SPHINXBUILD) \
>   	-b $2 \
> +	-j $(shell nproc) \

Nitpick:

-j auto
does the same since Sphinx 1.7 and saves a shell call.

Cheers,
Quentin
diff mbox series

Patch

diff --git a/doc/Makefile b/doc/Makefile
index 050d9dd2391..008a516cb64 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -57,6 +57,7 @@  quiet_cmd_sphinx = SPHINX  $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
 	BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \
 	$(SPHINXBUILD) \
 	-b $2 \
+	-j $(shell nproc) \
 	-c $(abspath $(srctree)/$(src)) \
 	-d $(abspath $(BUILDDIR)/.doctrees/$3) \
 	-D version=$(KERNELVERSION) -D release=$(KERNELRELEASE) \