[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YXBhFUAgpXaxCK3y@robh.at.kernel.org>
Date: Wed, 20 Oct 2021 13:33:57 -0500
From: Rob Herring <robh@...nel.org>
To: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: Joey Gouly <joey.gouly@....com>, devicetree@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
Stephen Boyd <sboyd@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] dt-bindings: Consider DT_SCHEMA_FILES when finding
all json-schema
On Mon, 18 Oct 2021 12:54:48 +0200, Geert Uytterhoeven wrote:
> Setting DT_SCHEMA_FILES allows the user to restrict the
> "dt_binding_check" make target to a specified set of DT binding files.
> However, yamllint is still run on all available files, which not only
> takes time, but also outputs warnings for other binding files the
> developer is not interested in.
>
> Fix this by renaming "find_cmd" to "find_all_cmd", introducing a new
> "find_cmd" to only return the files specified by DT_SCHEMA_FILES (if
> present), and using the latter for yamllint.
We can also do the same thing on dt-doc-validate since checking and
preprocessing schemas are separate steps, so I did while applying.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
> ---
> v2:
> - Introduce find_all_cmd,
> - Only use the restricted set for yamllint.
> ---
> Documentation/devicetree/bindings/Makefile | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
>
Powered by blists - more mailing lists