diff options
| author | Simon Glass <[email protected]> | 2023-01-28 15:00:18 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-06 13:04:53 -0500 |
| commit | 0041b1c09a6bae62df36116315b49f3dea7e118b (patch) | |
| tree | d01a643e50f088528de42d3c1dddd11898be5c63 /cmd/bootflow.c | |
| parent | d472e93ab4d0e037990f2db33f014ac8fcbeac9d (diff) | |
bootstd: Allow enabling BOOTSTD_FULL without needing EXPO
It is sometimes useful to have one without the other, e.g. on a device
without a display, since at present the expo feature requires CONFIG_VIDEO
to be enabled.
Update the Makefile and bootflow command to support this, as well as the
EXPO dependency.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/bootflow.c')
| -rw-r--r-- | cmd/bootflow.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c index 692bc6d117f..3548bbb6830 100644 --- a/cmd/bootflow.c +++ b/cmd/bootflow.c @@ -394,15 +394,20 @@ static int do_bootflow_menu(struct cmd_tbl *cmdtp, int flag, int argc, if (ret) return CMD_RET_FAILURE; - ret = bootflow_menu_run(std, text_mode, &bflow); - if (ret) { - if (ret == -EAGAIN) - printf("Nothing chosen\n"); - else - printf("Menu failed (err=%d)\n", ret); - - return CMD_RET_FAILURE; + if (IS_ENABLED(CONFIG_EXPO)) { + ret = bootflow_menu_run(std, text_mode, &bflow); + if (ret) { + if (ret == -EAGAIN) + printf("Nothing chosen\n"); + else + printf("Menu failed (err=%d)\n", ret); + } + } else { + printf("Menu not supported\n"); + ret = -ENOSYS; } + if (ret) + return CMD_RET_FAILURE; printf("Selected: %s\n", bflow->os_name ? bflow->os_name : bflow->name); std->cur_bootflow = bflow; |
