diff options
| author | Antonin Godard <antonin.godard@bootlin.com> | 2025-12-11 10:06:15 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2026-01-26 09:41:30 +0000 |
| commit | 495e1c2ed0e963a2fe27259086e72fd9a3c675da (patch) | |
| tree | 46dc5a194c93faa32d3055297916d23f61a77fc7 | |
| parent | d4eb015d2b109ccbe704ca79560a35b786dd0e07 (diff) | |
| download | poky-495e1c2ed0e963a2fe27259086e72fd9a3c675da.tar.gz | |
Makefile: fix rsvg-convert --format capitalization
On some versions of rsvg-convert, capitalized formats are unknown.
For example on CentOS Stream 9:
$ rsvg-convert --format=Png --output=ref-manual/svg/releases.png ref-manual/svg/releases.svg
Unknown output format.
While the same command with "png" runs fine.
On Ubuntu 22.04, both are accepted.
Switch to the un-capitalized options, compatible with all versions.
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
(From yocto-docs rev: 8e3e562179d47553268970f49a98817abfb32df6)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit cb60df269ef6329372f2676ab705134bbf2490eb)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | documentation/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/Makefile b/documentation/Makefile index 65e29713d4..07801cc2d3 100644 --- a/documentation/Makefile +++ b/documentation/Makefile | |||
| @@ -43,11 +43,11 @@ PNGs := $(foreach dir, $(IMAGEDIRS), $(patsubst %.svg,%.png,$(wildcard $(SOURCED | |||
| 43 | 43 | ||
| 44 | # Pattern rule for converting SVG to PDF | 44 | # Pattern rule for converting SVG to PDF |
| 45 | %.pdf : %.svg | 45 | %.pdf : %.svg |
| 46 | $(SVG2PDF) --format=Pdf --output=$@ $< | 46 | $(SVG2PDF) --format=pdf --output=$@ $< |
| 47 | 47 | ||
| 48 | # Pattern rule for converting SVG to PNG | 48 | # Pattern rule for converting SVG to PNG |
| 49 | %.png : %.svg | 49 | %.png : %.svg |
| 50 | $(SVG2PNG) --format=Png --output=$@ $< | 50 | $(SVG2PNG) --format=png --output=$@ $< |
| 51 | 51 | ||
| 52 | clean: | 52 | clean: |
| 53 | @rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js releases.rst | 53 | @rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js releases.rst |
