docs: sphinx/kernel_abi: use AbiParser directly

Instead of running get_abi.py script, import AbiParser class and
handle messages directly there using an interactor. This shold save some
memory, as there's no need to exec python inside the Sphinx python
extension.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/8dbc244dcda97112c1b694e2512a5d600e62873b.1739182025.git.mchehab+huawei@kernel.org
This commit is contained in:
Mauro Carvalho Chehab
2025-02-10 11:18:04 +01:00
committed by Jonathan Corbet
parent 9bec7870c6
commit ee34f8300c
2 changed files with 17 additions and 14 deletions

View File

@@ -427,7 +427,7 @@ class AbiParser:
return new_desc + "\n\n"
def doc(self, enable_lineno, output_in_txt, show_file=False):
def doc(self, enable_lineno, output_in_txt=False, show_file=False):
"""Print ABI at stdout"""
part = None