]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: cros: Allow detection of any kernel partition
authorSimon Glass <sjg@chromium.org>
Thu, 24 Aug 2023 19:55:45 +0000 (13:55 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 26 Aug 2023 14:07:32 +0000 (10:07 -0400)
commit71f634b822ae6613c43fc960d5afbe5b5d728fb4
tree4f1d3e80cbca579f5dc8ba678391e1cb499a80a4
parent966b16c59a70cd2e3383eb77d49c1e62b093b36f
bootstd: cros: Allow detection of any kernel partition

The existing ChromiumOS bootmeth only supports reading a single kernel
partition, either 2 or 4. In fact there are normally two options
available.

Use the GUID to detect kernel partitions, with the BOOTMETHF_ANY_PART
flag, so that bootstd does not require a valid filesystem before calling
the bootmeth.

Tidy up and improve the logging while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
[trini: Add missing select of PARTITION_TYPE_GUID]
Signed-off-by: Tom Rini <trini@konsulko.com>
boot/Kconfig
boot/bootmeth_cros.c
test/boot/bootflow.c