Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Christian Gmeiner | 9f9eec3 | 2014-11-12 14:35:04 +0100 | [diff] [blame] | 2 | /* |
| 3 | * cmd_fs_uuid.c -- fsuuid command |
| 4 | * |
| 5 | * Copyright (C) 2014, Bachmann electronic GmbH |
Christian Gmeiner | 9f9eec3 | 2014-11-12 14:35:04 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
Christian Gmeiner | 9f9eec3 | 2014-11-12 14:35:04 +0100 | [diff] [blame] | 8 | #include <command.h> |
| 9 | #include <fs.h> |
| 10 | |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 11 | static int do_fs_uuid_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, |
| 12 | char *const argv[]) |
Christian Gmeiner | 9f9eec3 | 2014-11-12 14:35:04 +0100 | [diff] [blame] | 13 | { |
| 14 | return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY); |
| 15 | } |
| 16 | |
| 17 | U_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 | ); |