
Not all devices use the convention of the first partition holding the boot files. E.g. on chromebooks partition 1 and 2 are usually of the "Chromeos kernel data" type. So instead of hardcoding just the first partitions scan all partition on a storage device.
First two patches add some supporting commands, which help in determining the list of partitions to scan and detect whether they have a known filesystem (No need to scan for a bunch of different fiels if the filesystem isn't supported).
Third patch has the actual changes, while the last one tries to make it a bit easier for board files to include the distro boot commands even if they don't use it as their default.
Sjoerd Simons (4): fs: Add command to retrieve the filesystem type part: let list put the list in an environment variable config_distro_bootcmd: Scan all partitions for boot files distro_distro_bootcmd: use CONFIG_BOOTCOMMAND instead of setting bootcmd=
common/cmd_fs.c | 15 +++++++++++++++ common/cmd_part.c | 24 ++++++++++++++++++++++-- fs/fs.c | 27 +++++++++++++++++++++++++++ include/config_distro_bootcmd.h | 21 +++++++++++++++++---- include/fs.h | 6 ++++++ 5 files changed, 87 insertions(+), 6 deletions(-)