common.mk: qemu: do not build docs
Add the --disable-docs option to QEMU_CONFIGURE_PARAMS_COMMON so that no
documentation is generated during the QEMU build. Documentation is not
needed and it may fail to build in some environments. For instance on
Ubuntu 18.04.5 LTS:
Warning, treated as error:
docs/qemu-option-trace.rst.inc:4:Malformed option description '[enable=]PATTERN', should look like "opt", "-opt args", "--opt args", "/opt args" or "+opt args"
make[1]: *** [.docs_built_system_qemu.1_docs_built_system_qemu-block-drivers.7_docs_built_system_qemu-cpu-models.7.sentinel.] Error 2
The error is caused by sphinx-build:
$ sphinx-build --version
sphinx-build 3.2.1
The version that comes with Ubuntu 20.04.1 LTS works fine:
$ sphinx-build --version
sphinx-build 1.8.5
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
diff --git a/common.mk b/common.mk
index 63a233b..0742aab 100644
--- a/common.mk
+++ b/common.mk
@@ -370,7 +370,8 @@
################################################################################
# QEMU / QEMUv8
################################################################################
-QEMU_CONFIGURE_PARAMS_COMMON = --cc="$(CCACHE)gcc" --extra-cflags="-Wno-error"
+QEMU_CONFIGURE_PARAMS_COMMON = --cc="$(CCACHE)gcc" --extra-cflags="-Wno-error" \
+ --disable-docs
QEMU_EXTRA_ARGS +=\
-object rng-random,filename=/dev/urandom,id=rng0 \
-device virtio-rng-pci,rng=rng0,max-bytes=1024,period=1000