From 2280fa56a00a63bbabc2076330367ec2863a474b Mon Sep 17 00:00:00 2001 From: Niel Fourie Date: Tue, 24 Mar 2020 16:17:04 +0100 Subject: cmd: fs: Add command to list supported fs types Added command "fstypes" to list supported/included filesystems. Signed-off-by: Niel Fourie Cc: Simon Glass Reviewed-by: Simon Glass [trini: Limit to sandbox] Signed-off-by: Tom Rini --- cmd/fs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cmd/fs.c') diff --git a/cmd/fs.c b/cmd/fs.c index 3a0c465c157..5ad11647c2d 100644 --- a/cmd/fs.c +++ b/cmd/fs.c @@ -100,3 +100,14 @@ U_BOOT_CMD( "fstype : \n" "- set environment variable to filesystem type\n" ); + +static int do_fstypes_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, + char * const argv[]) +{ + return do_fs_types(cmdtp, flag, argc, argv); +} + +U_BOOT_CMD( + fstypes, 1, 1, do_fstypes_wrapper, + "List supported filesystem types", "" +); -- cgit v1.2.3