[PATCH V3] Makefile: Sort u-boot-initial-env output

Tom Rini trini at konsulko.com
Fri Apr 8 14:30:38 CEST 2022


On Tue, Mar 01, 2022 at 09:38:51AM +0100, Christoph Niedermaier wrote:

> This will sort the default environment file generated by
> "make u-boot-initial-env", but won't sort the default
> environment in the compiled u-boot binary. The file
> u-boot-initial-env is considered to use for the userpace
> environment access tools [1] in case of that the
> environments is written the first time into its location.
> This is done on the one hand for a better overview and
> comparison of the generated environment file. On the other
> hand it is to synchronize the output with the script
> get_default_env.sh, which generated a sorted default
> environment file. The sorting preserves the order of equal
> variable names by sorting only the variable name, and
> disable the last-resort comparison. After sorting,
> unnoticed blank lines at the end move to the top. Avoid
> that by removing it before sorting.
> 
> [1] https://github.com/sbabic/libubootenv
> 
> Signed-off-by: Christoph Niedermaier <cniedermaier at dh-electronics.com>
> Reviewed-by: Stefano Babic <sbabic at denx.de>
> Tested-by: Stefano Babic <sbabic at denx.de>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Marek Behún <marek.behun at nic.cz>
> To: u-boot at lists.denx.de
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220408/d6ffb4d9/attachment.sig>


More information about the U-Boot mailing list