> From: Marek Vasut <ma...@denx.de> > Date: Thu, 20 Jul 2023 14:50:42 +0200 > > POSIX does not defined longopts for sort, use shortops > for even more compatibility.
Even though OpenBSD's sort does implement the long options this is still good to have! Reviewed-by: Mark Kettenis <kette...@openbsd.org> > Fixes: cc5a490cf465 ("Makefile: Sort u-boot-initial-env output") > Reported-by: Milan P. Stanić <m...@arvanta.net> > Signed-off-by: Marek Vasut <ma...@denx.de> > --- > Cc: Christoph Niedermaier <cniederma...@dh-electronics.com> > Cc: Marek Behún <marek.be...@nic.cz> > Cc: Simon Glass <s...@chromium.org> > Cc: Stefano Babic <sba...@denx.de> > Cc: u-b...@dh-electronics.com > Cc: u-boot@lists.denx.de > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 87f9fc786e8..5fc16b3b1f1 100644 > --- 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 -t '=' -k 1,1 -s -o $@ > > u-boot-initial-env: $(env_h) FORCE > $(Q)$(MAKE) $(build)=tools $(objtree)/tools/printinitialenv > -- > 2.40.1 > >