Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: Add a help message when dtschema tools are missing

The dtschema version check works, but is not that clear when dtschema is
either not installed or not in the PATH. Add a separate check and
message if dt-doc-validate is not found.

Cc: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>

+5
+5
Documentation/devicetree/bindings/Makefile
··· 9 9 10 10 PHONY += check_dtschema_version 11 11 check_dtschema_version: 12 + @which $(DT_DOC_CHECKER) >/dev/null || \ 13 + { echo "Error: '$(DT_DOC_CHECKER)' not found!" >&2; \ 14 + echo "Ensure dtschema python package is installed and in your PATH." >&2; \ 15 + echo "Current PATH is:" >&2; \ 16 + echo "$$PATH" >&2; false; } 12 17 @{ echo $(DT_SCHEMA_MIN_VERSION); \ 13 18 $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \ 14 19 { echo "ERROR: dtschema minimum version is v$(DT_SCHEMA_MIN_VERSION)" >&2; false; }