]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 1d551da3ed0722735f970a5dba828c60df343326..87f9fc786e8cadfdaea3a15ca02321695b86ba1c 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