Message ID | 20201015220626.418-2-luoyonggang@gmail.com |
---|---|
State | New |
Headers | show |
Series | Fixes docs building on msys2/mingw | expand |
Il ven 16 ott 2020, 00:06 Yonggang Luo <luoyonggang@gmail.com> ha scritto: > meson didn't support running ../scripts/kernel-do directly > Can you explain why this matters? Meson does not look at docs/conf.py. Paolo > Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> > --- > docs/conf.py | 2 +- > docs/sphinx/kerneldoc.py | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/docs/conf.py b/docs/conf.py > index 00e1b750e2..e584f68393 100644 > --- a/docs/conf.py > +++ b/docs/conf.py > @@ -241,7 +241,7 @@ texinfo_documents = [ > # We use paths starting from qemu_docdir here so that you can run > # sphinx-build from anywhere and the kerneldoc extension can still > # find everything. > -kerneldoc_bin = os.path.join(qemu_docdir, '../scripts/kernel-doc') > +kerneldoc_bin = ['perl', os.path.join(qemu_docdir, > '../scripts/kernel-doc')] > kerneldoc_srctree = os.path.join(qemu_docdir, '..') > hxtool_srctree = os.path.join(qemu_docdir, '..') > qapidoc_srctree = os.path.join(qemu_docdir, '..') > diff --git a/docs/sphinx/kerneldoc.py b/docs/sphinx/kerneldoc.py > index 3e87940206..3ac277d162 100644 > --- a/docs/sphinx/kerneldoc.py > +++ b/docs/sphinx/kerneldoc.py > @@ -67,7 +67,7 @@ class KernelDocDirective(Directive): > > def run(self): > env = self.state.document.settings.env > - cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno'] > + cmd = env.config.kerneldoc_bin + ['-rst', '-enable-lineno'] > > filename = env.config.kerneldoc_srctree + '/' + self.arguments[0] > export_file_patterns = [] > -- > 2.28.0.windows.1 > > <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il ven 16 ott 2020, 00:06 Yonggang Luo <<a href="mailto:luoyonggang@gmail.com">luoyonggang@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">meson didn't support running ../scripts/kernel-do directly<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Can you explain why this matters? Meson does not look at docs/conf.py.</div><div dir="auto"><br></div><div dir="auto">Paolo</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br> Signed-off-by: Yonggang Luo <<a href="mailto:luoyonggang@gmail.com" target="_blank" rel="noreferrer">luoyonggang@gmail.com</a>><br> ---<br> docs/conf.py | 2 +-<br> docs/sphinx/kerneldoc.py | 2 +-<br> 2 files changed, 2 insertions(+), 2 deletions(-)<br> <br> diff --git a/docs/conf.py b/docs/conf.py<br> index 00e1b750e2..e584f68393 100644<br> --- a/docs/conf.py<br> +++ b/docs/conf.py<br> @@ -241,7 +241,7 @@ texinfo_documents = [<br> # We use paths starting from qemu_docdir here so that you can run<br> # sphinx-build from anywhere and the kerneldoc extension can still<br> # find everything.<br> -kerneldoc_bin = os.path.join(qemu_docdir, '../scripts/kernel-doc')<br> +kerneldoc_bin = ['perl', os.path.join(qemu_docdir, '../scripts/kernel-doc')]<br> kerneldoc_srctree = os.path.join(qemu_docdir, '..')<br> hxtool_srctree = os.path.join(qemu_docdir, '..')<br> qapidoc_srctree = os.path.join(qemu_docdir, '..')<br> diff --git a/docs/sphinx/kerneldoc.py b/docs/sphinx/kerneldoc.py<br> index 3e87940206..3ac277d162 100644<br> --- a/docs/sphinx/kerneldoc.py<br> +++ b/docs/sphinx/kerneldoc.py<br> @@ -67,7 +67,7 @@ class KernelDocDirective(Directive):<br> <br> def run(self):<br> env = self.state.document.settings.env<br> - cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']<br> + cmd = env.config.kerneldoc_bin + ['-rst', '-enable-lineno']<br> <br> filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]<br> export_file_patterns = []<br> -- <br> 2.28.0.windows.1<br> <br> </blockquote></div></div></div>
diff --git a/docs/conf.py b/docs/conf.py index 00e1b750e2..e584f68393 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -241,7 +241,7 @@ texinfo_documents = [ # We use paths starting from qemu_docdir here so that you can run # sphinx-build from anywhere and the kerneldoc extension can still # find everything. -kerneldoc_bin = os.path.join(qemu_docdir, '../scripts/kernel-doc') +kerneldoc_bin = ['perl', os.path.join(qemu_docdir, '../scripts/kernel-doc')] kerneldoc_srctree = os.path.join(qemu_docdir, '..') hxtool_srctree = os.path.join(qemu_docdir, '..') qapidoc_srctree = os.path.join(qemu_docdir, '..') diff --git a/docs/sphinx/kerneldoc.py b/docs/sphinx/kerneldoc.py index 3e87940206..3ac277d162 100644 --- a/docs/sphinx/kerneldoc.py +++ b/docs/sphinx/kerneldoc.py @@ -67,7 +67,7 @@ class KernelDocDirective(Directive): def run(self): env = self.state.document.settings.env - cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno'] + cmd = env.config.kerneldoc_bin + ['-rst', '-enable-lineno'] filename = env.config.kerneldoc_srctree + '/' + self.arguments[0] export_file_patterns = []
meson didn't support running ../scripts/kernel-do directly Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> --- docs/conf.py | 2 +- docs/sphinx/kerneldoc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)