projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
322322d
)
dt-bindings: Use portable sort for version cmp
author
Iskren Chernev
<iskren.chernev@gmail.com>
Mon, 1 Feb 2021 16:58:28 +0000
(18:58 +0200)
committer
Rob Herring
<robh@kernel.org>
Tue, 9 Feb 2021 20:57:00 +0000
(14:57 -0600)
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>
Documentation/devicetree/bindings/Makefile
patch
|
blob
|
history
diff --git
a/Documentation/devicetree/bindings/Makefile
b/Documentation/devicetree/bindings/Makefile
index 8f2b054bec5a0778b9025eeda172530515d13434..f5530c91d655c2680076c5a2012797d8d6344e83 100644
(file)
--- 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 -V
C
|| \
+ $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -V
c >/dev/null
|| \
{ echo "ERROR: dtschema minimum version is v$(DT_SCHEMA_MIN_VERSION)" >&2; false; }
quiet_cmd_extract_ex = DTEX $@