]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: Fix command line length limit calling dt-mk-schema
authorRob Herring <robh@kernel.org>
Tue, 21 Apr 2020 20:42:02 +0000 (15:42 -0500)
committerRob Herring <robh@kernel.org>
Fri, 24 Apr 2020 14:28:58 +0000 (09:28 -0500)
commitf1843429c6e04a006568d842e8df7dc8b68dff8e
treed90b61abc9b7b30c5c44d7cf029688fed5d1ade3
parenta8421981b3d589c3d284353df034ae0b25af77d3
dt-bindings: Fix command line length limit calling dt-mk-schema

As the number of schemas has increased, we're starting to hit the error
"execvp: /bin/sh: Argument list too long". This is due to passing all the
schema files on the command line to dt-mk-schema. It currently is only
with out of tree builds and is intermittent depending on the file path
lengths.

Commit a48058f5e842 ("kbuild: Always validate DT binding examples") made
hitting this proplem more likely since the example validation now always
gets the full list of schemas.

Fix this by passing the schema file list in a pipe and using xargs. We end
up doing the find twice, but the time is insignificant compared to the
dt-mk-schema time.

Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/Makefile