Merge branch '2024-11-22-assorted-fixes'
[u-boot.git] / cmd / bloblist.c
blob333ae558142c9efe9003e7ee89a91384fc4b727e
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * Command-line access to bloblist features
5 * Copyright 2020 Google LLC
6 * Written by Simon Glass <sjg@chromium.org>
7 */
9 #include <bloblist.h>
10 #include <command.h>
11 #include <asm/global_data.h>
13 DECLARE_GLOBAL_DATA_PTR;
15 static int do_bloblist_info(struct cmd_tbl *cmdtp, int flag, int argc,
16 char *const argv[])
18 bloblist_show_stats();
20 return 0;
23 static int do_bloblist_list(struct cmd_tbl *cmdtp, int flag, int argc,
24 char *const argv[])
26 bloblist_show_list();
28 return 0;
31 U_BOOT_LONGHELP(bloblist,
32 "info - show information about the bloblist\n"
33 "bloblist list - list blobs in the bloblist");
35 U_BOOT_CMD_WITH_SUBCMDS(bloblist, "Bloblists", bloblist_help_text,
36 U_BOOT_SUBCMD_MKENT(info, 1, 1, do_bloblist_info),
37 U_BOOT_SUBCMD_MKENT(list, 1, 1, do_bloblist_list));