提交 b4541803 编写于 作者: M Mauro Carvalho Chehab 提交者: Jonathan Corbet

docs: kernel_abi.py: add sphinx build dependencies

Ensure that Sphinx-build will handle the files parsed by
get_abi.pl as dependencies. This way, if they are touched,
the ABI output will be regenerated.
Reported-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
Link: https://lore.kernel.org/r/10bc3d3bc74f514a539cd3b48b9d287d2b6f99e2.1648290305.git.mchehab@kernel.orgSigned-off-by: NJonathan Corbet <corbet@lwn.net>
上级 85999f03
...@@ -128,6 +128,7 @@ class KernelCmd(Directive): ...@@ -128,6 +128,7 @@ class KernelCmd(Directive):
return out return out
def nestedParse(self, lines, fname): def nestedParse(self, lines, fname):
env = self.state.document.settings.env
content = ViewList() content = ViewList()
node = nodes.section() node = nodes.section()
...@@ -154,6 +155,9 @@ class KernelCmd(Directive): ...@@ -154,6 +155,9 @@ class KernelCmd(Directive):
self.do_parse(content, node) self.do_parse(content, node)
content = ViewList() content = ViewList()
# Add the file to Sphinx build dependencies
env.note_dependency(os.path.abspath(f))
f = new_f f = new_f
# sphinx counts lines from 0 # sphinx counts lines from 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册