docs: sphinx/kfigure.py: Add check of 'dot -Tpdf'
authorAkira Yokosawa <akiyks@gmail.com>
Wed, 29 Dec 2021 11:45:29 +0000 (20:45 +0900)
committerJonathan Corbet <corbet@lwn.net>
Thu, 10 Feb 2022 00:00:41 +0000 (17:00 -0700)
commitecf5fb58cdcd93b9cf555b95da4ef73b1297de4c
treea1e7c4db3e69c0f838b881878cff6d7177513f9c
parentc9edbe1eb98248c290d93aa2ffdc30cab5e2e62c
docs: sphinx/kfigure.py: Add check of 'dot -Tpdf'

To prevent any regression on existing build systems, limit the
fallback of converting DOT -> raster PDF only when both of the
following conditions are met.

 o dot(1) doesn't support -Tpdf
 o rsvg-convert(1) is not found

While we are here, add kernellog.verbose messages related to
rsvg-convert, 'dot -Tpdf', and 'dot -Tsvg' commands.

Suggested-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/e76f61e1-7366-ba00-b119-8ea6a2499861@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sphinx/kfigure.py