This series collects together some bootstd improvements: - Improve iteration when there are a lot of devices - Add a test image for Ubuntu (to compliment Fedora) - Improve the naming of USB devices and bootdevs - Add a new command to set the bootdev order - Add a little more debugging - Use an abuf when dealing with allocate files - A few other minor things in bootstd
Most of these issues were found when adding the new test image and more USB devices to sandbox. Changes in v2: - Add new patch with a helper for initing and allocating a buffer - Update to use abuf_init_size() - Update commit message to make it clear this is not actually an image - Drop use of LOGR() - Rebase on top of recent FS changes Simon Glass (18): abuf: Add a helper for initing and allocating a buffer fs: boot: Update fs_read_alloc() to use abuf fs: boot: Update fs_load_alloc() to use abuf fs: boot: Update bootmeth_alloc_other() to use abuf bootstd: Add more debugging to bootmeth_efi bootstd: Add more debugging to bootmeth_extlinux bootstd: Try all bootmeths on the final partition bootstd: Fully complete iteration of a uclass test/py: Split out core of Fedora image into a new function test/py: Add an extlinux file similar to Ubuntu usb: Use more useful names for block devices sandbox: Use a unique name for each USB controller bootstd: Tweak scanning with labels bootstd: Tidy up a nested CONFIG_IS_ENABLED(BOOTSTD) bootstd: Provide a command to select the bootdev order bootstd: Correct the comment for bootmeth_set_order() bootstd: Expand debugging in bootdev_find_in_blk() bootstd: Mention FS state in bootmeth_read_bootflow() arch/sandbox/dts/test.dts | 13 +++- boot/bootdev-uclass.c | 114 +++++++++++++++++++++++---------- boot/bootflow.c | 37 ++++++----- boot/bootmeth-uclass.c | 17 ++--- boot/bootmeth_efi.c | 5 +- boot/bootmeth_extlinux.c | 14 +++- boot/bootmeth_script.c | 6 +- boot/bootstd-uclass.c | 18 ++++++ boot/cedit.c | 3 +- boot/scene.c | 3 +- boot/scene_textline.c | 3 +- cmd/bootdev.c | 37 +++++++++++ cmd/bootflow.c | 2 +- cmd/cat.c | 13 ++-- cmd/cedit.c | 18 +++--- doc/usage/cmd/bootdev.rst | 36 +++++++++++ drivers/usb/emul/sandbox_hub.c | 2 +- drivers/usb/host/usb-uclass.c | 14 +++- fs/fs.c | 27 +++----- include/abuf.h | 11 ++++ include/bootdev.h | 60 +++++++++-------- include/bootflow.h | 2 +- include/bootmeth.h | 12 ++-- include/bootstd.h | 10 +++ include/fs.h | 18 +++--- lib/abuf.c | 9 +++ lib/of_live.c | 3 +- test/boot/bootdev.c | 83 ++++++++++++++++++------ test/boot/bootflow.c | 10 +-- test/dm/blk.c | 4 +- test/dm/usb.c | 8 +-- test/lib/abuf.c | 22 +++++++ test/py/tests/test_ut.py | 111 +++++++++++++++++++++++++------- 33 files changed, 534 insertions(+), 211 deletions(-) -- 2.43.0 base-commit: 37e1b5b09b6ad0a8dd15c580b4f915ea46de8935 branch: schc2