Merge patch series "bootstd: Support recording images"
authorTom Rini <trini@konsulko.com>
Wed, 15 Jan 2025 23:34:26 +0000 (17:34 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 16 Jan 2025 01:27:14 +0000 (19:27 -0600)
Simon Glass <sjg@chromium.org> says:

This series provides a way to keep track of the images used in bootstd,
including the type of each image.

At present this is sort-of handled by struct bootflow but in quite an
ad-hoc way. The structure has become quite large and is hard to query.
Future work will be able to reduce its size.

Ultimately the 'bootflow info' command may change to also show images as
a list, but that is left for later, as this series is already fairly
long. So for now, just introduce the concept and adjust bootstd to use
it, with a simple command to list the images.

This series includes various alist enhancements, to make use of this new
data structure a little easier.

[trini: Drop patch 18 and 19 for now due to size considerations]

Link: https://lore.kernel.org/r/20241115231926.211999-1-sjg@chromium.org
1  2 
boot/bootdev-uclass.c
boot/bootmeth_android.c
boot/bootmeth_extlinux.c
cmd/Kconfig
cmd/Makefile
doc/usage/index.rst
test/boot/bootflow.c
test/py/tests/test_ut.py

Simple merge
Simple merge
@@@ -160,7 -160,7 +161,8 @@@ static int extlinux_read_bootflow(struc
                return log_msg_ret("try", ret);
        size = bflow->size;
  
-       ret = bootmeth_alloc_file(bflow, 0x10000, ARCH_DMA_MINALIGN);
 -      ret = bootmeth_alloc_file(bflow, 0x10000, 1, BFI_EXTLINUX_CFG);
++      ret = bootmeth_alloc_file(bflow, 0x10000, ARCH_DMA_MINALIGN,
++                                BFI_EXTLINUX_CFG);
        if (ret)
                return log_msg_ret("read", ret);
  
diff --cc cmd/Kconfig
Simple merge
diff --cc cmd/Makefile
Simple merge
Simple merge
Simple merge
Simple merge