expo: Split bootflow_menu_new() into two pieces
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:28 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:32 +0000 (09:49 +0100)
commitda754e20c99a0e611b05c74f9e28daf9cdf1a199
tree8a30fdef4f8288e69044a0aa914cbbeed2cee079
parentb991a0c8bf30095837b096acd691e0d2add07b8c
expo: Split bootflow_menu_new() into two pieces

Split the iteration piece of this function into bootflow_menu_add_all()
so that it is possible for the caller to be in control of adding items
to the menu.

Move the expo_destroy() call into the caller.

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