projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16d1f0a
)
dt-bindings: kbuild: Print a warning if yamllint is not found
author
Rob Herring
<robh@kernel.org>
Thu, 3 Mar 2022 17:45:14 +0000
(11:45 -0600)
committer
Rob Herring
<robh@kernel.org>
Thu, 10 Mar 2022 15:53:23 +0000
(09:53 -0600)
Running yamllint is effectively required for binding schemas, so print a
warning if not found rather than silently skipping running it.
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link:
https://lore.kernel.org/r/20220303221417.2486268-1-robh@kernel.org
Documentation/devicetree/bindings/Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/devicetree/bindings/Makefile
b/Documentation/devicetree/bindings/Makefile
index 5138d10e0601a9200404a057215dcaa49e760cb4..29b5dbd0807e623022857eea75fb640eb0379a23 100644
(file)
--- a/
Documentation/devicetree/bindings/Makefile
+++ b/
Documentation/devicetree/bindings/Makefile
@@
-3,7
+3,8
@@
DT_DOC_CHECKER ?= dt-doc-validate
DT_EXTRACT_EX ?= dt-extract-example
DT_MK_SCHEMA ?= dt-mk-schema
-DT_SCHEMA_LINT = $(shell which yamllint)
+DT_SCHEMA_LINT := $(shell which yamllint || \
+ echo "warning: python package 'yamllint' not installed, skipping" >&2)
DT_SCHEMA_MIN_VERSION = 2021.2.1