Ability to modify distro boot filename
authorMartyn Welch <martyn.welch@collabora.co.uk>
Tue, 6 Nov 2018 12:23:53 +0000 (12:23 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 21:52:01 +0000 (16:52 -0500)
commitad5fbc6e8858d0f57a0712f7dba2c710aed9a43c
tree7498d1ea39b76773fef1b6ae35b0551c3c83c751
parent907837d65938fc95e68deaccfd8ee1802e6ba050
Ability to modify distro boot filename

Add in the ability to modify the distro boot filename. Whilst not
immediately useful in normal usage, it allows an alternative
configuration to be provided when other u-boot functionality is used, such
as bootcount limit, to fallback to an alternative boot configuration. In
this case we can follow the same boot path as for normal boot, just
using an alternatively named configuration file.

For example, by providing the following `altbootcmd` when bootcount is in
use:

altbootcmd=setenv boot_extlinx_conf extlinux-rollback.conf; \
run distro_bootcmd

Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/config_distro_bootcmd.h