]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Add a return code to bootflow menu
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:14:38 +0000 (19:14 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Nov 2023 03:04:00 +0000 (20:04 -0700)
commit3fa53b9531c1db5e3be42014f2004786e9511f35
tree54612c886104b00a78898970b17689645f789600
parentbaea7ec6a63e38bd4a5815c6cafded972a91c148
bootstd: Add a return code to bootflow menu

Return an error when the user does not select an OS, so we know whether
to boot or not.

Move calling of bootflow_menu_run() into a separate function so we can
call it from other places.

Expand the test to cover these cases.

Add some documentation also, while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/bootflow.c
doc/usage/cmd/bootflow.rst
test/boot/bootflow.c