blob: 5f7770d09ac650df99581b18a6838bc93af8a7c2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Christian Gmeiner9f9eec32014-11-12 14:35:04 +01002/*
3 * cmd_fs_uuid.c -- fsuuid command
4 *
5 * Copyright (C) 2014, Bachmann electronic GmbH
Christian Gmeiner9f9eec32014-11-12 14:35:04 +01006 */
7
Christian Gmeiner9f9eec32014-11-12 14:35:04 +01008#include <command.h>
9#include <fs.h>
10
Simon Glassed38aef2020-05-10 11:40:03 -060011static int do_fs_uuid_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
12 char *const argv[])
Christian Gmeiner9f9eec32014-11-12 14:35:04 +010013{
14 return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
15}
16
17U_BOOT_CMD(
18 fsuuid, 4, 1, do_fs_uuid_wrapper,
19 "Look up a filesystem UUID",
20 "<interface> <dev>:<part>\n"
21 " - print filesystem UUID\n"
22 "fsuuid <interface> <dev>:<part> <varname>\n"
23 " - set environment variable to filesystem UUID\n"
24);