Skip to content

Commit a21ca2d

Browse files
ichernevrobherring
authored andcommitted
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 <[email protected]> Fixes: ea5b8b5 ("dt-bindings: Add a minimum version check for dtschema") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 322322d commit a21ca2d

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
@@ -10,7 +10,7 @@ DT_SCHEMA_MIN_VERSION = 2020.8.1
1010
PHONY += check_dtschema_version
1111
check_dtschema_version:
1212
@{ echo $(DT_SCHEMA_MIN_VERSION); \
13-
$(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -VC || \
13+
$(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \
1414
{ echo "ERROR: dtschema minimum version is v$(DT_SCHEMA_MIN_VERSION)" >&2; false; }
1515

1616
quiet_cmd_extract_ex = DTEX $@

0 commit comments

Comments
 (0)