[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250614165837.35e9abde@foz.lan>
Date: Sat, 14 Jun 2025 16:58:37 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Donald Hunter <donald.hunter@...il.com>
Cc: Linux Doc Mailing List <linux-doc@...r.kernel.org>, Jonathan Corbet
<corbet@....net>, Akira Yokosawa <akiyks@...il.com>, Breno Leitao
<leitao@...ian.org>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Ignacio Encinas Rubio <ignacio@...cinas.com>, Jan
Stancek <jstancek@...hat.com>, Marco Elver <elver@...gle.com>, Paolo Abeni
<pabeni@...hat.com>, Ruben Wauters <rubenru09@....com>, Shuah Khan
<skhan@...uxfoundation.org>, joel@...lfernandes.org,
linux-kernel-mentees@...ts.linux.dev, linux-kernel@...r.kernel.org,
lkmm@...ts.linux.dev, netdev@...r.kernel.org, peterz@...radead.org,
stern@...land.harvard.edu
Subject: Re: [PATCH v4 04/14] tools: ynl_gen_rst.py: make the index parser
more generic
Em Sat, 14 Jun 2025 14:41:29 +0100
Donald Hunter <donald.hunter@...il.com> escreveu:
> On Sat, 14 Jun 2025 at 09:56, Mauro Carvalho Chehab
> <mchehab+huawei@...nel.org> wrote:
> >
> > It is not a good practice to store build-generated files
> > inside $(srctree), as one may be using O=<BUILDDIR> and even
> > have the Kernel on a read-only directory.
> >
> > Change the YAML generation for netlink files to allow it
> > to parse data based on the source or on the object tree.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
> > ---
> > tools/net/ynl/pyynl/ynl_gen_rst.py | 22 ++++++++++++++++------
> > 1 file changed, 16 insertions(+), 6 deletions(-)
>
> It looks like this patch is no longer required since this script
> doesn't get run by `make htmldocs` any more.
>
> Instead, I think there is cleanup work to remove unused code like
> `generate_main_index_rst`
It is too early to drop it on this series, as only this patch:
[PATCH v4 09/14] docs: use parser_yaml extension to handle Netlink specs
stops using it.
> This whole script may be unnecessary now, unless we want a simple way
> to run YnlDocGenerator separately from the main doc build.
It is up to you to keep or drop after patch 9. Yet, on my experiences with
kernel_doc.py and get_abi.py, it is a lot easier to test the parser via
a simple command line script, without having Sphinx parallel build, complex
doc build logic and Sphinx exception handling in place.
My suggestion is to keep ynl_gen_rst.py, removing generate_main_index_rst
as a cleanup patch after patch 9.
Regards,
Mauro
Powered by blists - more mailing lists