Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: use get_abi.py for ABI generation

Use the new script instead of the old one when generating ABI docs.

For now, execute it via exec. Future changes will better integrate it
by using the class defined there directly.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/e7fcb121c0612c94f6f54f0d742cd3a26a46cd7d.1739182025.git.mchehab+huawei@kernel.org

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
9d7ec886 6b48bea1

+3 -11
-1
Documentation/admin-guide/abi-obsolete.rst
··· 10 10 obsolete and when it can be expected to be removed. 11 11 12 12 .. kernel-abi:: ABI/obsolete 13 - :rst:
-1
Documentation/admin-guide/abi-removed.rst
··· 4 4 =================== 5 5 6 6 .. kernel-abi:: ABI/removed 7 - :rst:
-1
Documentation/admin-guide/abi-stable.rst
··· 13 13 be available. 14 14 15 15 .. kernel-abi:: ABI/stable 16 - :rst:
-1
Documentation/admin-guide/abi-testing.rst
··· 19 19 developers can easily notify them if any changes occur. 20 20 21 21 .. kernel-abi:: ABI/testing 22 - :rst:
+3 -7
Documentation/sphinx/kernel_abi.py
··· 14 14 :license: GPL Version 2, June 1991 see Linux/COPYING for details. 15 15 16 16 The ``kernel-abi`` (:py:class:`KernelCmd`) directive calls the 17 - scripts/get_abi.pl script to parse the Kernel ABI files. 17 + scripts/get_abi.py script to parse the Kernel ABI files. 18 18 19 19 Overview of directive's argument and options. 20 20 ··· 67 67 68 68 option_spec = { 69 69 "debug" : directives.flag, 70 - "rst" : directives.unchanged 71 70 } 72 71 73 72 def run(self): ··· 77 78 srctree = os.path.abspath(os.environ["srctree"]) 78 79 79 80 args = [ 80 - os.path.join(srctree, 'scripts/get_abi.pl'), 81 + os.path.join(srctree, 'scripts/get_abi.py'), 82 + '-D', os.path.join(srctree, 'Documentation', self.arguments[0]), 81 83 'rest', 82 84 '--enable-lineno', 83 - '--dir', os.path.join(srctree, 'Documentation', self.arguments[0]), 84 85 ] 85 - 86 - if 'rst' in self.options: 87 - args.append('--rst-source') 88 86 89 87 lines = subprocess.check_output(args, cwd=os.path.dirname(doc.current_source)).decode('utf-8') 90 88 nodeList = self.nestedParse(lines, self.arguments[0])