Skip to content

Commit b454180

Browse files
mchehabJonathan Corbet
authored andcommitted
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: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Link: https://lore.kernel.org/r/10bc3d3bc74f514a539cd3b48b9d287d2b6f99e2.1648290305.git.mchehab@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 85999f0 commit b454180

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/sphinx/kernel_abi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def runCmd(self, cmd, **kwargs):
128128
return out
129129

130130
def nestedParse(self, lines, fname):
131+
env = self.state.document.settings.env
131132
content = ViewList()
132133
node = nodes.section()
133134

@@ -154,6 +155,9 @@ def nestedParse(self, lines, fname):
154155
self.do_parse(content, node)
155156
content = ViewList()
156157

158+
# Add the file to Sphinx build dependencies
159+
env.note_dependency(os.path.abspath(f))
160+
157161
f = new_f
158162

159163
# sphinx counts lines from 0

0 commit comments

Comments
 (0)