Skip to content

Commit 6b49f34

Browse files
nathanchancerobherring
authored andcommitted
dt-bindings: kbuild: Make DT_SCHEMA_LINT a recursive variable
A recent change added a warning when yamllint is not installed, as it is needed for 'make dt_binding_check'. However, it also changed DT_SCHEMA_LINT to be a simple make variable, which is evaluated when a Makefile is evaluated. This causes a warning when running 'make clean', as Documentation/devicetree/bindings/Makefile has a "clean-files" variable: $ make -s clean which: no yamllint in (...) warning: python package 'yamllint' not installed, skipping Make DT_SCHEMA_LINT a recursive variable so it is evaluated only when it is used. The warning still triggers when 'make dt_binding_check' is run. Fixes: b3e664a ("dt-bindings: kbuild: Print a warning if yamllint is not found") Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5db1c2d commit 6b49f34

File tree

1 file changed

+1
-1
lines changed
  • Documentation/devicetree/bindings

1 file changed

+1
-1
lines changed

Documentation/devicetree/bindings/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ DT_DOC_CHECKER ?= dt-doc-validate
33
DT_EXTRACT_EX ?= dt-extract-example
44
DT_MK_SCHEMA ?= dt-mk-schema
55

6-
DT_SCHEMA_LINT := $(shell which yamllint || \
6+
DT_SCHEMA_LINT = $(shell which yamllint || \
77
echo "warning: python package 'yamllint' not installed, skipping" >&2)
88

99
DT_SCHEMA_MIN_VERSION = 2022.3

0 commit comments

Comments
 (0)