Skip to content
Snippets Groups Projects
Commit 1dace42e authored by Jerome Forissier's avatar Jerome Forissier Committed by Jérôme Forissier
Browse files

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: default avatarJerome Forissier <jerome@forissier.org>
Reviewed-by: default avatarJoakim Bech <joakim.bech@linaro.org>
parent d77eb5e8
No related branches found
No related tags found
No related merge requests found
...@@ -370,7 +370,8 @@ edk2-clean-common: ...@@ -370,7 +370,8 @@ edk2-clean-common:
################################################################################ ################################################################################
# QEMU / QEMUv8 # 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 +=\ QEMU_EXTRA_ARGS +=\
-object rng-random,filename=/dev/urandom,id=rng0 \ -object rng-random,filename=/dev/urandom,id=rng0 \
-device virtio-rng-pci,rng=rng0,max-bytes=1024,period=1000 -device virtio-rng-pci,rng=rng0,max-bytes=1024,period=1000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment