Skip to content
Commit 7a790f01 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

bootstd: Scan all bootdevs in a boot_targets entry (take 2)



When the boot_targets environment variable is used with the distro-boot
scripts, each device is included individually. For example, if there
are three mmc devices, then we will have something like:

   boot_targets="mmc0 mmc1 mmc2"

In contrast, standard boot supports specifying just the uclass, i.e.:

   boot_targets="mmc"

The intention is that this should scan all MMC devices, but in fact it
currently only scans the first.

Update the logic to handle this case, without required BOOTSTD_FULL to
be enabled.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reported-by: default avatarDate Huang <tjjh89017@hotmail.com>
Reported-by: default avatarVincent Stehlé <vincent.stehle@arm.com>
Reported-by: default avatarIvan Ivanov <ivan.ivanov@suse.com>
Tested-by: default avatarIvan T.Ivanov <iivanov@suse.de>
parent 16e19350
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment