bootstd: Only scan bootable partitions
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:42 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commitf0e358f07d75579b40eff8f723b280ab5d53d338
treedd22560415627197881a374a11b4d55f4fff5af2
parentdcffa4428d0359fd09348fc05cf5b5ce2db38c5f
bootstd: Only scan bootable partitions

At present all partitions are scanned, whether marked bootable or not.
Use only bootable partitions, defaulting to partition 1 if none is
found.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c
include/bootflow.h
test/boot/bootdev.c
test/boot/bootflow.c