diff options
| author | Antonin Godard <antonin.godard@bootlin.com> | 2024-11-06 08:48:24 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-15 06:05:32 -0800 |
| commit | fdd6df60f17c02fea53b7df6a9b802b24bf4b5c5 (patch) | |
| tree | 57af158f9c14fd42fb375e7e9ac561ca158ef2a5 /documentation/Makefile | |
| parent | b1ac9e9c94a94672407500bcbf80af4b23b7994a (diff) | |
| download | poky-fdd6df60f17c02fea53b7df6a9b802b24bf4b5c5.tar.gz | |
doc: Makefile: add support for xelatex
This patch makes the "latexpdf" target compile the documentation with
xelatex instead of the default pdflatex engine.
The reason behind this is stated in [YOCTO #14357]: pdflatex does not
support compiling foreign characters, so we need to resort to another
engine, here xelatex.
It also increases the texmf config buf_size to 10000000 to avoid a
compilation error.
(From yocto-docs rev: 0a6944b9f90b4d3babbdec9dee18fb8195b0db06)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 93848842b3ad8aa6b9c9f46d60f2c2ad396c6971)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/Makefile')
| -rw-r--r-- | documentation/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/documentation/Makefile b/documentation/Makefile index cb8d4dea85..402ad986ae 100644 --- a/documentation/Makefile +++ b/documentation/Makefile | |||
| @@ -61,9 +61,12 @@ epub: $(PNGs) | |||
| 61 | $(SOURCEDIR)/set_versions.py | 61 | $(SOURCEDIR)/set_versions.py |
| 62 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | 62 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 63 | 63 | ||
| 64 | # Note: we need to pass buf_size here (which is also configurable from | ||
| 65 | # texmf.cnf), to avoid following error: | ||
| 66 | # Unable to read an entire line---bufsize=200000. Please increase buf_size in texmf.cnf. | ||
| 64 | latexpdf: $(PDFs) | 67 | latexpdf: $(PDFs) |
| 65 | $(SOURCEDIR)/set_versions.py | 68 | $(SOURCEDIR)/set_versions.py |
| 66 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | 69 | buf_size=10000000 $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 67 | 70 | ||
| 68 | all: html epub latexpdf | 71 | all: html epub latexpdf |
| 69 | 72 | ||
