Makefile: Add missing quotes around sort --field-separator
authorMarek Vasut <marex@denx.de>
Tue, 11 Jul 2023 12:15:53 +0000 (14:15 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 17 Jul 2023 19:38:11 +0000 (15:38 -0400)
Busybox sort does not handle --field-separator== , replace this
with --field-separator='=' for maximum compatibility.

Fixes: cc5a490cf465 ("Makefile: Sort u-boot-initial-env output")
Reported-by: Milan P. Stanić <mps@arvanta.net>
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile

index 1d551da..87f9fc7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2444,7 +2444,7 @@ quiet_cmd_genenv = GENENV  $@
 cmd_genenv = \
        $(objtree)/tools/printinitialenv | \
        sed -e '/^\s*$$/d' | \
-       sort --field-separator== -k1,1 --stable -o $@
+       sort --field-separator='=' -k1,1 --stable -o $@
 
 u-boot-initial-env: $(env_h) FORCE
        $(Q)$(MAKE) $(build)=tools $(objtree)/tools/printinitialenv