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