summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/Makefile
diff options
context:
space:
mode:
authorIskren Chernev <iskren.chernev@gmail.com>2021-02-01 17:58:28 +0100
committerRob Herring <robh@kernel.org>2021-02-09 21:57:00 +0100
commita21ca2dad097f479cd14e6474b69e0792dd4ef32 (patch)
tree403dbd2a0d856233f050c46341985c649be3216b /Documentation/devicetree/bindings/Makefile
parentdt-bindings: ethernet-controller: fix fixed-link specification (diff)
downloadlinux-a21ca2dad097f479cd14e6474b69e0792dd4ef32.tar.xz
linux-a21ca2dad097f479cd14e6474b69e0792dd4ef32.zip
dt-bindings: Use portable sort for version cmp
sort -C is like sort -c >/dev/null but less portable. It fails on busybox sort (i.e alpine linux). Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com> Fixes: ea5b8b5eb004 ("dt-bindings: Add a minimum version check for dtschema") Link: https://lore.kernel.org/r/20210201165829.58656-1-iskren.chernev@gmail.com Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/Makefile')
-rw-r--r--Documentation/devicetree/bindings/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile
index 8f2b054bec5a..f5530c91d655 100644
--- a/Documentation/devicetree/bindings/Makefile
+++ b/Documentation/devicetree/bindings/Makefile
@@ -10,7 +10,7 @@ DT_SCHEMA_MIN_VERSION = 2020.8.1
PHONY += check_dtschema_version
check_dtschema_version:
@{ echo $(DT_SCHEMA_MIN_VERSION); \
- $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -VC || \
+ $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \
{ echo "ERROR: dtschema minimum version is v$(DT_SCHEMA_MIN_VERSION)" >&2; false; }
quiet_cmd_extract_ex = DTEX $@