projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85999f0
)
docs: kernel_abi.py: add sphinx build dependencies
author
Mauro Carvalho Chehab
<mchehab@kernel.org>
Sat, 26 Mar 2022 10:27:21 +0000
(11:27 +0100)
committer
Jonathan Corbet
<corbet@lwn.net>
Mon, 28 Mar 2022 19:53:46 +0000
(13:53 -0600)
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>
Documentation/sphinx/kernel_abi.py
patch
|
blob
|
history
diff --git
a/Documentation/sphinx/kernel_abi.py
b/Documentation/sphinx/kernel_abi.py
index 4392b3cb40206fe7632a3022b6296d2e253655ee..efab9b14a9f55bdf0aad2d746d4a84b3759307ad 100644
(file)
--- a/
Documentation/sphinx/kernel_abi.py
+++ b/
Documentation/sphinx/kernel_abi.py
@@
-128,6
+128,7
@@
class KernelCmd(Directive):
return out
def nestedParse(self, lines, fname):
+ env = self.state.document.settings.env
content = ViewList()
node = nodes.section()
@@
-154,6
+155,9
@@
class KernelCmd(Directive):
self.do_parse(content, node)
content = ViewList()
+ # Add the file to Sphinx build dependencies
+ env.note_dependency(os.path.abspath(f))
+
f = new_f
# sphinx counts lines from 0