diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:47:20 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:39 +0300 |
commit | f1779f2cc3b91ccf2ebb1ec7fcd703c3a3d20cef (patch) | |
tree | bbf6ed03d483c1eda76675add14096bc51d6d4d2 /cmd | |
parent | 67bb9731221a70e23d185b7de43dd27cc986fa00 (diff) | |
download | u-boot-f1779f2cc3b91ccf2ebb1ec7fcd703c3a3d20cef.tar.xz |
vbe: Avoid a build failure when bloblist is not enabled
This needs to be able to work (at least partially) without the bloblist
active. Add a condition for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/vbe.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -79,10 +79,13 @@ static int do_vbe_info(struct cmd_tbl *cmdtp, int flag, int argc, static int do_vbe_state(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - struct vbe_handoff *handoff; + struct vbe_handoff *handoff = NULL; int i; - handoff = bloblist_find(BLOBLISTT_VBE, sizeof(struct vbe_handoff)); + if (IS_ENABLED(CONFIG_BLOBLIST)) { + handoff = bloblist_find(BLOBLISTT_VBE, + sizeof(struct vbe_handoff)); + } if (!handoff) { printf("No VBE state\n"); return CMD_RET_FAILURE; |